n = int(input())
lst = [int(i) for i in input().split()]
rate = [0] * 8
num = 0

for i in range(n):
    k = lst[i] // 400
    if k < 8 and rate[k] == 0:
        rate[k] += 1
    elif k >= 8:
        num += 1


c = rate.count(1)
y = min(num+c,8)

if c == 0:
    x = 1
else:
    x = c

print(x,y)