import sys
input = sys.stdin.readline
N = int(input())
A = [int(x) for x in input().split()]

color = set()
over = 0
for a in A :
    if a < 3200 :
        color.add(a//400)
    else :
        over += 1

print(max(over,len(color)), len(color)+over)
