N = int(input())
a = list(map(int,input().split()))
col = [0]*9
for i in range(N):
    if a[i] <=399:
        col[0] = 1
    elif a[i] <= 799:
        col[1] = 1
    elif a[i] <= 1199:
        col[2] = 1
    elif a[i] <= 1599:
        col[3] = 1
    elif a[i] <= 1999:
        col[4] = 1
    elif a[i] <= 2399:
        col[5] = 1
    elif a[i] <= 2799:
        col[6] = 1
    elif a[i] <= 3199:
        col[7] = 1
    else: col[8] += 1
ansmax = min(sum(col),8)
if col[8]>0:
    ansmin = max(sum(col[:8]),1)
else: ansmin = sum(col[:8])
print(ansmin, ansmax)