from collections import Counter

N = int(input())
a = list(map(lambda x:int(x)//400,input().split(" ")))
c = Counter(a)
s = 0
for i in [0,1,2,3,4,5,6,7]:
    s += (c[i] and 1)
l = max(1,s)
m = min(8,s+c[8])
print(str(l)+" "+str(m))