from bisect import bisect_right

n = int(input())
a = list(map(int, input().split()))

r = [400, 800, 1200, 1600, 2000, 2400, 2800, 3200]
c = [0] * 9

for score in a:
	i = bisect_right(r, score)
	c[i] += 1

min_ans = 8 - c[:-1].count(0)
max_ans = min(8, min_ans+c[-1])
print(min_ans, max_ans)