n = int(raw_input())
l = map(int, raw_input().split())
ll = [False for _ in range(8)]
o = 0
for i in l:
    if i/400 < 8:
        ll[i/400] = True
    else:
        o += 1
c = ll.count(True)
if c == 0:
    print 1,o
else:
    print c,c+o
