import sys

if sys.platform =='ios':
	sys.stdin=open('Untitled.txt')
input = sys.stdin.readline
def INT(): return int(input())
def MAP(): return [int(s) for s in input().split()]

N = INT()
A = MAP()

norm = []
genius = []
for a in A:
	if a >= 3200: genius.append(a//400)
	else: norm.append(a//400)

#print(norm)
#print(genius)

print(len(set(norm)), len(set(norm))+len(genius))