# 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 v < 400:
        s.add(1)
    elif v < 800:
        s.add(2)
    elif v < 1200:
        s.add(3)
    elif v < 1600:
        s.add(4)
    elif v < 2000:
        s.add(5)
    elif v < 2400:
        s.add(6)
    elif v < 2800:
        s.add(7)
    elif v < 3200:
        s.add(8)
    else:
        cnt += 1
print(len(s), len(s) + cnt)
