N = int(input())
data = list(map(int,input().split()))
box = [0]*8
num = 0
for i in range(len(data)):
        x = int(data[i] / 400)
        if x < 8:
            box[x] += 1
        else:
            num += 1
answer = len(box)   - box.count(0)
print(answer,(answer+num))

