n = int(input())
A = list(map(int,input().split()))
r = []
R = []
for i in range(n):
    if A[i] >= 3200:
        R.append(A[i])
    else:
        r.append(A[i] // 400)
rs = len(set(r))
m = rs + len(R)
if m > 8:
    m = 8
print(rs,m)