x = int(input())
x //= 100
x -= 4
x //= 2
print(8-x) x = int(input()) x int(input()) int input() input x //= 100 x 100 x -= 4 x 4 x //= 2 x 2 print(8-x) print 8-x 8 x x //= 2 2 x x = int(input()) int(input()) x x -= 4 4 x x //= 100 100 x
x = int(input())
x //= 100
x -= 4
x //= 2
print(8-x)