import sys
input = sys.stdin.readline

N = int(input())
L = [int(v) // 400 for v in input().split()]
ma = max(L)

if ma < 8:
    t = set(L)
    print(len(t), len(t))
else:
    p = len([v for v in L if v < 8])
    t = len([v for v in L if v >= 8])
    print((p if p <= 8 else 8) if p != 0 else 1, p + t if p + t <= 8 else 8)
