n = int(input())
lis = [0,0,0,0,0,0,0,0]
pro = 0
li = list(map(int,input().split()))
for i in range(n):
	if li[i] >= 3200:
		pro += 1
	else:
		lis[(li[i])//400] = 1
su = lis.count(1)
print(max(su,1),min(su+pro,8))