Where Do Lovers Go?

YouKnowWho Virtual Techfest 2020 Reg...
Limits 1s, 512 MB

Cherry isn't feeling well right now as she found a problem that she couldn't solve. So she started to listen to Where Do Lovers Go? and you, to make her happy, have to solve the problem for her.

You are given an integer nn. You have to find an integer kk (1k10181 \le k \le 10^{18}) such that the following conditions are satisfied:

  • kk is a multiple of nn
  • n&k=0n \, \& \, k = 0. Here, &\& is the bitwise AND operator.

Input

The first line of the input contains a single integer tt (1t1051 \le t \le 10^5) denoting the number of test cases. The description of tt test cases follows.

The first and only line of each test case contains an integer nn (1n1081 \le n \le 10^8).

Output

For each test case, print a single line containing an integer kk (1k10181 \le k \le 10^{18}) satisfying the aforementioned conditions.

If there are multiple solutions, output any. It can be shown that an answer always exists under the given constraints.

Sample

InputOutput
3
5
34
69
10
340
4002

Submit

Login to submit.

Statistics

66% Solution Ratio
Ashiqur.141492Earliest, Dec '20
MR.Jukerburg11Fastest, 0.0s
ABIR_RULightest, 1.6 MB
steinumShortest, 58B
Toph uses cookies. By continuing you agree to our Cookie Policy.