99 Problems

아직 제출이 없습니다시간 제한1초메모리 제한1024 MB

문제

Ingrid is the founder of a company that sells bicycle parts. She used to set the prices of products quite arbitrarily, but now she has decided that it would be more profitable if the prices end in 9999.

You are given a positive integer NN, the price of a product. Your task is to find the nearest positive integer to NN which ends in 9999. If there are two such numbers that are equally close, find the bigger one.

입력

The input contains one integer NN (1N1041 \leq N \leq 10^4), the price of a product. It is guaranteed that the number NN does not end in 9999.

출력

Print one integer, the closest positive integer that ends in 9999. In case of a tie, print the bigger one.