import math

N=int(input())
s = list(map(int,input().split()))
c = []

for i in range(9):
    c.append(0)

for i in s:
    ii = math.floor(i / 400)
    if ii > 8:
        ii = 8
    c[ii] = c[ii] + 1

a = 0
for i in range(8):
    if c[i] > 0:
        a = a + 1

b = min(a + c[8], 8)
a = max(a, 1)

print(a, b)