N = int(input())
an = list(map(int, input().split()))
free = 0
check = []
for a in an:
    if a > 3199:
        free += 1
    else:
        check.append(a//400)
print(len(set(check)), len(set(check))+free)
