Physics Experiment
면접 대비시간 제한1초메모리 제한1024 MB
숫자를 원하는 자리에서 여러 번 반올림해 얻을 수 있는 값 중 가장 큰 값을 구한다.
문제
Yunee is taking a physics lab class. One day, after an experiment, Yunee noticed that some figures in the experiment result came out lower than expected. So Yunee decided to manipulate the result by rounding the values several times.
When rounding a number to the -th place, it is rounded down if the digit one place right to the -th place is less than . Otherwise, it is rounded up. For example, rounding to the nearest tens gives . On the other hand, rounding to the nearest hundreds gives .
By rounding to the nearest hundreds and then thousands, we get . This is the maximum value we can get by rounding zero or more times.
Help Yunee maximize the value in the experiment result by rounding it zero or more times.
입력
The first line contains an integer representing the value in the experiment result . Note that may exceed the 32-bit integer limit.
출력
Output the maximized value by rounding zero or more times. The output should not have leading zeros.