# encoding: utf-8
N = int(input())
a = list(map(int, input().split()))

used = 0
rainbow = 0
for ai in a:
    for i in range(8):
        if ai < 400 * (i + 1):
            used = used | (2 ** i)
            break
        else: continue
    else: rainbow += 1

ans = 0
for i in range(8):
    if used & (2 ** i) > 0: ans += 1

print(ans, ans + rainbow)