CF2218A.The 67th Integer Problem

传统题 时间 2000 ms 内存 256 MiB 3 尝试 1 已通过 1 标签

The 67th Integer Problem

Welcome to the New World, O Esteemed Earthly Visitor. You've been summoned by Macaque, a primate with four legs, a god complex and a terminal addiction to the word "trivial". You are Undertaking a Journey of Great Importance. Such Incredible Importance. No Journey Will EVER be as IMPORTANT as this one (and nothing this narrator says will sound so distinctly... orange again). You are implored to cooperate with Macaque, for his wrath (and joblessness) are unending. There is no room for error or incompetence. Lousiness shall be met with the full force of the law.

Macaque is given an integer xx. Your task is to choose an integer yy such that the value of min(x,y)\operatorname{min}(x, y)^{\text{∗}} is maximized.

If there are multiple valid yy, you may output any of them.

^{\text{∗}}min(x,y)\operatorname{min}(x, y) is defined as the minimum of integers xx and yy.

Input

Each test contains multiple test cases. The first line contains the number of test cases tt (1t67671 \le t \le 6767). The description of the test cases follows.

The only line of each test case contains a single integer xx (67x67-67 \le x \le 67).

Output

For each test case, output one integer yy (67y67-67 \le y \le 67) such that min(x,y)\min(x, y) is maximized.

Note

In the first case, 22 is a possible answer because min(1,2)=1\min(1, 2) = 1, which can be shown to be maximal.

Samples

3
1
3
5
2
4
6

在线编程 IDE

建议全屏模式获得最佳体验