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 n n n . You have to find an integer k k k (1 ≤ k ≤ 1 0 18 1 \le k \le 10^{18} 1 ≤ k ≤ 1 0 18 ) such that the following conditions are satisfied:
k k k is a multiple of n n n n & k = 0 n \, \& \, k = 0 n & k = 0 . Here, & \& & is the bitwise AND operator.Input The first line of the input contains a single integer t t t (1 ≤ t ≤ 1 0 5 1 \le t \le 10^5 1 ≤ t ≤ 1 0 5 ) denoting the number of test cases. The description of t t t test cases follows.
The first and only line of each test case contains an integer n n n (1 ≤ n ≤ 1 0 8 1 \le n \le 10^8 1 ≤ n ≤ 1 0 8 ).
Output For each test case, print a single line containing an integer k k k (1 ≤ k ≤ 1 0 18 1 \le k \le 10^{18} 1 ≤ k ≤ 1 0 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 Input Output 3
5
34
69
10
340
4002
Factors
CPU Memory Source Bash 5.0 1× 1× 1× Brainf*ck 1× 1× 1× C# Mono 6.0 1× 1× 1× C++11 GCC 7.4 1× 1× 1× C++14 GCC 8.3 1× 1× 1× C++17 GCC 9.2 1× 1× 1× C++20 GCC 12.1 1× 1× 1× C11 GCC 12.1 1× 1× 1× C11 GCC 9.2 1× 1× 1× Common Lisp SBCL 2.0 1× 1× 1× D8 11.8 1× 1× 1× Erlang 22.3 1× 1× 1× Free Pascal 3.0 1× 1× 1× Go 1.18 1× 1× 1× Grep 3.7 1× 1× 1× Haskell 8.6 1× 1× 1× Java 1.8 1× 1× 1× Kotlin 1.1 1× 1× 1× Lua 5.4 1× 1× 1× Node.js 10.16 1× 1× 1× Perl 5.30 1× 1× 1× PHP 7.2 1× 1× 1× PyPy 7.1 (2.7) 1× 1× 1× PyPy 7.1 (3.6) 1× 1× 1× Python 2.7 1× 1× 1× Python 3.11 1× 1× 1× Ruby 2.7 1× 1× 1× Ruby 3.2 1× 1× 1× Rust 1.57 1× 1× 1× Swift 5.3 1× 1× 1× Whitespace 1× 1× 1× Python 3.7 1× 1× 1×