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

for i in range(n):
    if 1 <= li[i] <=399:
        li[i] = 1
    elif 400<= li[i] <=799: 
        li[i] = 2
    elif 800<= li[i] <=1199:
        li[i] = 3
    elif 1200<= li[i] <=1599:
        li[i] = 4
    elif 1600<= li[i] <=1999:
        li[i] = 5
    elif 2000<= li[i] <=2399:
        li[i] = 6
    elif 2400<= li[i] <=2799:
        li[i] = 7
    elif 2800<= li[i] <=3199:
        li[i] = 8
    elif 3200<= li[i] <=4800:
        li[i] = 10+i
max1 = len(set(li))
li = [x for x in li if x < 9]
min1 = len(set(li))
print(min1,max1)