#!/usr/bin/env python3
N = int(input())
a = list(map(int, input().split()))

c = [0] * 9
for i in a:
    c[i // 400] += + 1

ans_min = 0
for i in range(8):
    if c[i] > 0:
        ans_min += 1

ans_max = ans_min
if c[-1] == 0:
    pass
else:
    f = c[-1]
    g = c.count(0)
    ans_max += min(f, g)

print(ans_min, ans_max)
