n = int(input())
a = list(map(int, input().split()))
a = list(map(lambda x:x//400, a))
a.sort()
tourist = 0
for i in range(n):
	if a[i]>=8:
		tourist = n-i
		break
min = len(set(a[:n-tourist]))
print(min, min+tourist)