n = int(input()) if n <= 100: print(1) else: print((n - 100 + 499) // 500)