n = int(input())
data = list(map(int, input().split()))

l = [0]*9
cam = 0
for d in data:
    num = d//400 if d//400 < 8 else 8
    if num==8: cam += 1
    if l[num] == 0: l[num] = 1

score = sum(l[:8])
print(max(1,score), min(8, score+cam))