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