# -*- coding: utf-8 -*-
 
import math
import itertools
import sys
import copy
 
# 入力
#A, B, C, D = map(int, input().split())
#L = list(map(int, input().split()))
#S = list(str(input()))
#N = int(input())
#S = str(input())
N = int(input())
a = list(map(int, input().split()))

C = [0 for _ in range(9)]

for i in range(N) :
  if a[i] < 3200 :
    C[a[i]//400] += 1
  else :
    C[8] += 1

min = 0
max = 0
for j in range(8) :
  if C[j] > 0 :
    min += 1

max = min + C[8]
if max >= 8 :
  max = 8

print (str(min) + " " + str(max))
  


