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 1 <= i <= 399:
        se.add('1')
    elif 400 <= i <= 799:
        se.add('2')
    elif 800 <= i <= 1199:
        se.add('3')
    elif 1200 <= i <= 1599:
        se.add('4')
    elif 1600 <= i <= 1999:
        se.add('5')
    elif 2000 <= i <= 2399:
        se.add('6')
    elif 2400 <= i <= 2799:
        se.add('7')
    elif 2800 <= i <= 3199:
        se.add('8')
    else:
        cnt += 1
print(len(se), len(se)+cnt)
