N = int(input())
a = list(map(int,input().split()))
x = dict()
y = []
for i in range(N):
    if a[i]<=399:
        x["gray"] = 1
    elif a[i]<=799:
        x["brown"] = 1
    elif a[i]<=1199:
        x["green"] = 1
    elif a[i] <=1599:
        x["lightblue"] = 1
    elif a[i] <= 1999:
        x["blue"] = 1
    elif a[i]<=2399:
        x["yellow"] = 1
    elif a[i]<=2799:
        x["orange"] = 1
    elif a[i]<=3199:
        x["red"] = 1
    else:
        y.append(a[i])

ans = 0
for idx in x:
    ans += 1
n = len(y)
m = ans
M = ans + n
s = ""
s = str(m)+" "+str(M)
print(s)