#64C

n = int(input())
a = list(map(int,input().split()))
color = [0] * 8
wc = 0

for i in range(n):
    for j in range(8):
        if a[i] >= j*400 and a[i] <= (j+1)*400 - 1:
            color[j] = 1
    if a[i] >= 3200:
        wc += 1
            
mi = sum(color)
ma = mi + wc
if mi == 0 and wc != 0:
    mi = 1
    ma -= 1

print("{} {}".format(mi, min(ma,8)))