N = int(raw_input())
a = map(int, raw_input().split())
b = []
cnt = 0
for i in range(0, N):
    if a[i] / 400 >= 8:
        cnt += 1
    else:
        b.append(a[i]/400)
b = set(b)

flag = 1
for x in a:
    if x >= 3200:
        flag = 0
    else:
        flag = 1
if flag:
    print len(b)
else:
    print 1
print len(b) + cnt
