N = int(input())
a = list(map(int, input().split()))
rate = [400 * i for i in range(9)]
nums = [0] * 8
tourist = 0

for i in range(N):
    for j in range(8):
        if rate[j] <= a[i] < rate[j+1]:
            nums[j] = 1
    if a[i] >= 3200:
        tourist += 1

color = nums.count(1)

print(color, color + tourist)
