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