N = input()
rates = [int(i) for i in input().split()]

color = [0] * 9
for rate in rates:
    if rate/400 < 8:
        color[int(rate/400)] += 1
    else:
        color[8] += 1

num = 0
for i in color[:8]:
    if i:
        num += 1

if num:
    mi = num
    ma = min(num + color[8], 8)
else:
    mi = 1
    ma = min(num + color[8], 8)

print("{} {}".format(mi,ma))