5477: 四舍五入

Memory Limit:512 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:3 Solved:3

Description

四舍五入是一种常见的近似计算方法。现在,给定 n 个整数,你需要将每个整数四舍五入到最接近的整十数。例如,43 四舍五入后为 40,58 四舍五入后为 60。

Input

共 n+1 行,第一行,一个整数 n,表示接下来输入的整数个数。 接下来 n 行,每行一个整数 a_1,a_2,...,a_n,表示需要四舍五入的整数。

Output

n 行,每行一个整数,表示每个整数四舍五入后的结果。

Sample Input Copy

5
43
58
25
67
90

Sample Output Copy

40
60
30
70
90

HINT

对于所有测试点,保证 1<=n<=100,1<=a_i<=10000。