n = int(input())
a = list(map(int, input().split()))

for i in range(len(a)):
    a[i] = a[i]//400

c = 0
for i in range(8):
    if i in a:
        c += 1

x = a.count(8)

print(max(1, c), min(8, c+x))
