import math N = int(input()) # 500*ans - N > -100 となる最小の整数ans print((N-100)//500 +1)