N = int(input()) import math print(math.ceil((N-99)/500))