X = int(input())
kyu = 8
X -= 600
while X >= 0:
	kyu -= 1
	X -= 200
print(kyu) X = int(input()) X int(input()) int input() input kyu = 8 kyu 8 X -= 600 X 600 while X >= 0:
	kyu -= 1
	X -= 200 X >= 0 X 0 kyu -= 1 kyu 1 X -= 200 X 200 print(kyu) print kyu X -= 600 600 X X = int(input()) int(input()) X X -= 200 200 X kyu -= 1 1 kyu kyu = 8 8 kyu
X = int(input())
kyu = 8
X -= 600
while X >= 0:
	kyu -= 1
	X -= 200
print(kyu)
