n=int(input())
if n<=100 and n>=0:
if n>=95:
A=5
elif n>75 and n<95:
A=4
elif n>=50 and n<=75:
A=3
elif n>=0 and n<=49:
A=2
print(A)
n=int(input())
if n<=100 and n>=0:
if n>=95:
A=5
elif n>75 and n<95:
A=4
elif n>=50 and n<=75:
A=3
elif n>=0 and n<=49:
A=2
print(A)