n = int(input())
a = list(map(int, input().split()))

s = [False] * 8
r = 0

for i in a:
	if i // 400 == 0:
		s[0] = True
	elif i // 800 == 0:
		s[1] = True
	elif i // 1200 == 0:
		s[2] = True
	elif i // 1600 == 0:
		s[3] = True
	elif i // 2000 == 0:
		s[4] = True
	elif i // 2400 == 0:
		s[5] = True
	elif i // 2800 == 0:
		s[6] = True
	elif i // 3200 == 0:
		s[7] = True
	else:
		r += 1

if sum(s) == 8:
	print(8, 8)
	exit()

else:
	temp = 8 - sum(s)
	print(sum(s), sum(s) + min(temp, r))