# ABC 064: C – Colorful Leaderboard
N = int(input())
a = [int(i) for i in input().split()]

colors = [0] * 8

for rate in a:
    if rate < 3200:
        colors[rate // 400] += 1

a_min = 1 if sum(colors) == 0 else len([i for i in colors if i > 0])
print(a_min, a_min + len([j for j in a if j >= 3200]))