#print#!/usr/bin/env python3
#%% for atcoder uniittest use
import sys
input= lambda: sys.stdin.readline().rstrip()
sys.setrecursionlimit(10**9)
def pin(type=int):return map(type,input().split())
def tupin(t=int):return tuple(pin(t))
def lispin(t=int):return list(pin(t))
#%%code
from fractions import gcd
import math
def resolve():
    N=pin()
    X=[x//400 for x in tupin()]
    s=set()
    free=0
    for x in X:
        if x>=8:free+=1
        else: s.add(x)
    print(len(s),len(s)+free)
        
    
        #print("".join(X).split("0"))
#%%submit!      
resolve()