P21199 [CodeChef] MAXIMUMSUBS
普及-
题目描述

A participant can make 1 submission every 30 seconds. If a contest lasts for X minutes, what is the maximum number of submissions that the participant can make during it?

It is also given that the participant cannot make any submission in the last 5 seconds of the contest.

------ Input Format ------

  • The first line of input will contain a single integer T, denoting the number of test cases.
  • Each test case consists of a single integer X, denoting the number of minutes.

------ Output Format ------

For each test case, output the maximum number of submissions a participant can make in X minutes.

------ Constraints ------

$1 ≤ T ≤ 30$
$1 ≤ X ≤ 30$

----- Sample Input 1 ------
4
1
2
3
4

----- Sample Output 1 ------
2
4
6
8

----- explanation 1 ------
Test case $1$: The contest lasts for $1$ minute, which is $60$ seconds. A participant can make $2$ submissions during this time — for example, in the $5$-th second and in the $48$-th second. Making $3$ or more submissions is impossible.

Test case $2$: The contest lasts for $2$ minutes, which is $120$ seconds. A participant can make $4$ submissions during this time.

输入格式

见题面

输出格式

见题面

样例输入
4 1 2 3 4
样例输出
2 4 6 8