N = int(input())
a = list(map(int, input().split()))
x1 = 0
x2 = 0
x3 = 0
x4 = 0
x5 = 0
x6 = 0
x7 = 0
x8 = 0
c = 0

for i in range(N):
	if a[i] < 400:
		x1 = 1
	elif a[i] < 800:
		x2 = 1
	elif a[i] < 1200:
		x3 = 1
	elif a[i] < 1600:
		x4 = 1
	elif a[i] < 2000:
		x5 = 1
	elif a[i] < 2400:
		x6 = 1
	elif a[i] < 2800:
		x7 = 1
	elif a[i] < 3200:
		x8 = 1
	else:
		c += 1
s = x1 + x2 + x3 + x4 + x5 + x6 + x7 + x8
print(s, s + c)