a = int(input())

b = list(map(int,input().split()))

c = [0]*8
d = 0
for i in range(a):
	if 1 <= b[i] and b[i] <=399:
		c[0] = 1
	elif 400 <= b[i] and b[i] <=799:
		c[1] = 1
	elif 800 <= b[i] and b[i] <=1199:
		c[2] = 1
	elif 1200 <= b[i] and b[i] <=1599:
		c[3] = 1
	elif 1600 <= b[i] and b[i] <=1999:
		c[4] = 1
	elif 2000 <= b[i] and b[i] <=2399:
		c[5] = 1
	elif 2400 <= b[i] and b[i] <=2799:
		c[6] = 1
	elif 2800 <= b[i] and b[i] <=3199:
		c[7] = 1
	else:
		d += 1

ma = sum(c) + d

if sum(c) == 0:
	print(ma,ma)
else:
	print(sum(c),ma)