rates = [400, 800, 1200, 1600, 2000, 2400, 2800, 3200]
n = input()
A = map(int, raw_input().split())
cnts = [0]*9
for a in A:
    for i, r in enumerate(rates):
        if a < r:
            cnts[i] = 1
            break
    else:
        cnts[-1] += 1
mi = max(sum(cnts[:-1]), 1)
ma = min(sum(cnts), 8)
print mi, ma
