n = int(input())
a = list(map(int, input().split()))
l = []
for i in a:
    l.append(i//400)
x = set()
y = 0
for i in l:
    if i<=7:
        x.add(i)
    else:
        y+=1
mi = len(x)
ma = len(x)+y
print('{} {}'.format(mi, ma))