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

for i in range(n):
    if 1 <= a[i] <= 399:
        min_l.add(1)
    elif 400 <= a[i] <= 799:
        min_l.add(2)
    elif 800 <= a[i] <= 1199:
        min_l.add(3)
    elif 1200 <= a[i] <= 1999:
        min_l.add(4)
    elif 2000 <= a[i] <= 2399:
        min_l.add(5)
    elif 2400 <= a[i] <= 2799:
        min_l.add(6)
    elif 2800 <= a[i] <= 3199:
        min_l.add(7)
    else:
        max_l.add(i)
        
print(len(min_l),len(min_l)+len(max_l))
