#!/usr/bin/env python3

from sys import *
from math import *

N = int(input())
l = list(map(int, input().split()))
gray = 0
brown = 0
green = 0
cyan = 0
blue = 0
yellow = 0
orange = 0
red = 0
counter = 0
min = 0
max = 0

for i in range(N):
   if l[i] >= 1 and l[i] <= 399:
   	   gray = 1
   elif l[i] >= 400 and l[i] <= 799:
   	   brown= 1
   elif l[i] >= 800 and l[i] <= 1199:
   	   green = 1
   elif l[i] >= 1200 and l[i] <= 1599:
   	   cyan = 1
   elif l[i] >= 1600 and l[i] <= 1999:
   	   blue = 1
   elif l[i] >= 2000 and l[i] <= 2399:
   	   yellow = 1   	   
   elif l[i] >= 2400 and l[i] <= 2799:
   	   orange = 1   	   
   elif l[i] >= 2800 and l[i] <= 3199:
   	   red = 1
   elif l[i] >= 3200:
   	   counter += 1

flag_sum = gray + brown + green + cyan + blue + yellow + orange + red

max = counter + flag_sum
if max >= 8:
   max = 8

if flag_sum >= 1:
   min = flag_sum
if flag_sum == 0:
   min = 1

print(min, max)