N = int(input())
 
a = list(map(int,input().split()))
 
c = []
color = 0
for i in a:
    if 1 <= i <= 399:
        c.append(1)
    elif 400 <= i <= 799:
        c.append(2)
    elif 800 <= i <= 1199:
        c.append(3)
    elif 1200 <= i <= 1599:
        c.append(4)
    elif 1600 <= i <= 1999:
        c.append(5)
    elif 2000 <= i <= 2399:
        c.append(6)
    elif 2400 <= i <= 2799:
        c.append(7)
    elif 2800 <= i <= 3199:
        c.append(8)
    else:
        color += 1
c = set(c)
 
if N == 1:
    print(1,1)
elif color:
    print(len(c),len(c)+color)
else:
    print(len(c),len(c))