import sys
import itertools

# import numpy as np

read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines

N, *a = map(int, read().split())
se = set()
cnt = 0
for i in a:
    if i < 400:
        se.add('1')
    elif i < 800:
        se.add('2')
    elif i < 1200:
        se.add('3')
    elif i < 1600:
        se.add('4')
    elif i < 2000:
        se.add('5')
    elif i < 2400:
        se.add('6')
    elif i < 2800:
        se.add('7')
    elif i < 3200:
        se.add('8')
    else:
        cnt += 1
mi = 0
ma = min(8, len(se) + cnt)
if len(se) == 0:
    mi = 1
else:
    mi = len(se)

print(mi, ma)
