import sys
from collections import Counter

# sys.stdin = open("c1.in")


def is_not_zero(x):
    if x != 0:
        return True
    else:
        return False


n = int(input())
a = list(map(int, input().split()))
c = Counter()

for x in a:
    for l in range(0, 3600, 400):
        if x < l:
            c[l] += 1

g = []
for l in range(400, 3600, 400):
    g.append(c[l] - c[l - 400])
r = n - sum(g)

# print('g:', g, '\nr:', r)

res = [0, 0]
# non_zero = list(filter(lambda x: x != 0, g))
non_zero = list(filter(is_not_zero, g))
res[0] = len(non_zero)
res[1] = res[0] + r
print(res[0], res[1])
