l = int(input())
m = input().split()

x = []
z = 0
c = 0

for i in range(l):
    if int(m[i]) < 3200:
        y = int(int(m[i]) / 400)
        if y not in x:
            x.append(y)
            z += 1
    elif int(m[i]) >= 3200:
        c += 1
        
if c == 0:
    print(str(z) + " " + str(z))
elif c > 0 and z > 0:
    z2 = c + z
    if z2 > 8:
        z2 = 8
    print(str(z) + " " + str(z2))
elif z == 0:
    if c > 8:
        c = 8
    print("1" + " " + str(c))