n = int(input())
A = list(map(int,input().split()))

for i in range(n):
    A[i] //= 400
    if A[i] > 7:
        A[i] = "*"
        
over3200 = A.count("*")

base = len(set(A))

if over3200 > 0:
    base -= 1

print(base,base+over3200)