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

l = []
over3200 = 0
for i in a:
    if i >= 3200:
        over3200 += 1
    else:
        l.append(i//400)
print(len(set(l)),len(set(l))+over3200)