N = int(input())
a = list(map(int, input().strip().split()))
free = 0
col1 = 0
col2 = 0
col3 = 0
col4 = 0
col5 = 0
col6 = 0
col7 = 0
col8 = 0
for i in range(N):
	if a[i] < 399:
		col1 = 1
	elif a[i] < 799:
		col2 = 1
	elif a[i] <1199:
		col3 = 1
	elif a[i] < 1599:
		col4 = 1
	elif a[i] < 1999:
		col5 = 1
	elif a[i] < 2399:
		col6 = 1
	elif a[i] < 2799:
		col7 = 1
	elif a[i] < 3199:
		col8 = 1
	else:
		free += 1
colmin = col1 + col2 + col3 + col4 + col5 + col6 + col7 + col8
if colmin + free >= 8:
	colmax = 8
else:
	colmax = colmin + free
	  
print(colmin, colmax)