n = int(input())
A = list(map(int, input().split()))
A = list(map(lambda x: x//400, A))
#print(A)

import collections
c = collections.Counter(A)
#print(c)
if not 8 in c.keys():
    print(len(c.keys()), ' ', len(c.keys()))
else:
    if len(c.keys()) == 1:
        print(1, ' ', c[8])
    else:
        if len(c.keys()) -1 + c[8] <= 8:
            print(len(c.keys()) -1, ' ', len(c.keys()) -1 + c[8])
        else:
            print(len(c.keys()) -1, ' ', 8)