n = int(input())
a = list(map(int, input().split()))
b = [8 for _ in range(n)]
free = 0
for i in range(n):
    if a[i] > 3199:
        free += 1
    else:
        b[i] = a[i] // 400
if 8 in set(b):
    under = len(set(b)) - 1
else:
    under = len(set(b))
m = under
M = under + free
print(m, M)
