# coding: UTF-8
import sys
#sys.setrecursionlimit(n)
import heapq
import re
import bisect
import random
import math
import itertools
from collections import defaultdict, deque
from copy import deepcopy
from decimal import *

N = int(input())
a = list(map(int, input().split()))
s = set()
cnt = 0
for v in a:
    if 1 <= v <= 399:
        s.add(1)
    elif 400 <= v <= 799:
        s.add(2)
    elif 800 <= v <= 1199:
        s.add(3)
    elif 1200 <= v <= 1599:
        s.add(4)
    elif 1600 <= v <= 1999:
        s.add(5)
    elif 2000 <= v <= 2399:
        s.add(6)
    elif 2400 <= v <= 2799:
        s.add(7)
    elif 2800 <= v <= 3199:
        s.add(8)
    elif 3200 <= v:
        cnt += 1
print(len(s), len(s) + cnt)
