import collections
def color(n):
    if 1 <= n <= 399:
        return 1
    elif 400 <= n <= 799:
        return 2
    elif 800 <= n <= 1199:
        return 3
    elif 1200 <= n <= 1599:
        return 4
    elif 1600 <= n <= 1999:
        return 5
    elif 2000 <= n <= 2399:
        return 6
    elif 2400 <= n <= 2799:
        return 7
    elif 2800 <= n <= 3199:
        return 8
    elif 3200 <= n:
        return 9
    

n = int(input())
a = list(map(int,input().split()))
for i in range(n):
    a[i] = color(a[i])
data = collections.Counter(a)
mnm = 0
for i in data:
    if i != 9 and data[i] != 0:
        mnm += 1
print(mnm,mnm+data[9])