import itertools
import math
import sys
from collections import Counter
from fractions import gcd
from functools import reduce
import sys
sys.setrecursionlimit(4100000)

n = int(input())
a = list(map(int, input().split()))
c = [0] * 8
cnt = 0
for i in a:
    if i < 3200:
        c[i // 400] = 1
    else:
       cnt += 1
# print(c)
min_ans = sum(c)
max_ans = min_ans + cnt
# print(c, cnt)
print(min_ans, max_ans)
