n = int(input())
A = list(map(int, input().split()))

c = []
cnt = 0
for a in A:
    if a < 400:
        c.append(0)
    elif a < 800:
        c.append(1)
    elif a < 1200:
        c.append(2)
    elif a < 1600:
        c.append(3)
    elif a < 2000:
        c.append(4)
    elif a < 2400:
        c.append(5)
    elif a < 2800:
        c.append(6)
    elif a < 3200:
        c.append(7)
    else:
        cnt += 1
d = len(set(c))

print(d, d+cnt)