n = int(input()) x = n % 100 if x < 49: n -= x + 1 else: n += 99 - x if n < 0: n = 99 print(n)