n = int(input())
a = list(map(int,input().split()))
a.sort()
c = []
count = 0
for i in range(n):
    if a[i] < 400:
        c.append(1)
    elif a[i] >= 400 and a[i] < 800:
        c.append(2)
    elif a[i] >= 800 and a[i] < 1200:
        c.append(3)
    elif a[i] >= 1200 and a[i] < 1600:
        c.append(4)
    elif a[i] >= 1600 and a[i] < 2000:
        c.append(5)
    elif a[i] >= 2000 and a[i] < 2400:
        c.append(6)
    elif a[i] >= 2400 and a[i] < 2800:
        c.append(7)
    elif a[i] >= 2800 and a[i] < 3200:
        c.append(8)
    else:
        count = count + n - i
        break
cl = set(c)
print(len(cl),len(cl)+count)