N = int(input())
la = list(map(int, input().split()))

lv = list()
l9 = list()

for i in range(N):
    if 1 <= la[i] <= 399:
        if 1 not in lv:
            lv.append(1)
    if 400 <= la[i] <= 799:
        if 2 not in lv:
            lv.append(2)
    if 800 <= la[i] <= 1199:
        if 3 not in lv:
            lv.append(3)
    if 1200 <= la[i] <= 1599:
        if 4 not in lv:
            lv.append(4)
    if 1600 <= la[i] <= 1999:
        if 5 not in lv:
            lv.append(5)
    if 2000 <= la[i] <= 2399:
        if 6 not in lv:
            lv.append(6)
    if 2400 <= la[i] <= 2799:
        if 7 not in lv:
            lv.append(7)
    if 2800 <= la[i] <= 3199:
        if 8 not in lv:
            lv.append(8)
    if la[i] >= 3200:
        l9.append(9)

print(len(lv), min(9, len(lv)+len(l9)))