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

ans = [0] * 9

for i in range(n):
	if 1 <= ls[i] <= 399:
		ans[0] += 1
	elif 400 <= ls[i] <= 799:
		ans[1] += 1
	elif 800 <= ls[i] <= 1199:
		ans[2] += 1
	elif 1200 <= ls[i] <= 1599:
		ans[3] += 1
	elif 1600 <= ls[i] <= 1999:
		ans[4] += 1
	elif 2000 <= ls[i] <= 2399:
		ans[5] += 1
	elif 2400 <= ls[i] <= 2799:
		ans[6] += 1
	elif 2800 <= ls[i] <= 3199:
		ans[7] += 1
	elif ls[i] >= 3200:
		ans[8] += 1

cnt = 0

for j in range(8):
	if ans[j] != 0:
		cnt += 1
		
print(cnt, cnt + ans[8])