N=input()
def waru(num):
    return int(num)//400
    
a = list(map(waru, input().split()))
b = []
num = 0
for i in a:
    if i >= 8:
        b.append(i)
min = len(set(a)) - len(set(b))

print(min, len(b)+min)
