CF2086A.Cloudberry Jam

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

Cloudberry Jam

The most valuable berry of the Karelian forests is cloudberry. To make jam from cloudberries, you take equal amounts of berries and sugar and cook them. Thus, if you have 22 kg of berries, you need 22 kg of sugar. However, from 22 kg of berries and 22 kg of sugar, you will not get 44 kg of jam, as one might expect, but only 33 kg, since some of the jam evaporates during cooking. Specifically, during standard cooking, exactly a quarter (or 25%25\%) of the jam evaporates.

How many kilograms of cloudberries are needed to prepare nn 33-kilogram jars of jam?

Input

Each test consists of several test cases. The first line contains a single integer tt (1t1041 \le t \le 10^{4}) — the number of test cases. The following lines describe the test cases.

Each test case contains a single integer nn (1n1081 \le n \le 10^8) — the number of jars of jam that need to be prepared.

Output

For each test case, output a single integer — the amount of berries needed for the jam in kilograms.

Note

For the test case 11, explanations are given in the text of the statement — to prepare 11 jar of jam, you need 22 kilograms of cloudberries.

Consider the test case 22: if we take 66 kilograms of berries and 66 kilograms of sugar, we get (6+6)34=9\frac{(6 + 6) \cdot 3}{4} = 9 kilograms of jam; which gives 93=3\frac{9}{3} = 3 jars of jam.

Samples

2
1
3
2
6

在线编程 IDE

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