You are given an integer $x$. Round it repeatedly according to the following rules.
Rounding is round-half-up: if the part being dropped is at least half of the place value, round up; otherwise round down (for the ones place, a ones digit of $5$ or more rounds up). When you can no longer round (the current value is at most the current threshold), that value is the final result.
The first line contains the number of test cases $n$. Each of the following lines contains one integer $x$ to be rounded. ($0 \le x \le 99999999$)
For each test case, print the result of rounding the given integer by the rules above, one per line.