<reponame>Azefalo/Cluble-de-Programacao-UTFPR
# https://olimpiada.ic.unicamp.br/pratique/pj/2018/f1/basquete/
D = int(input())
if D <= 800:
    print("1")
elif 800 < D and D <= 1400:
    print("2")
elif 1400 < D and D <= 2000:
    print("3")