n = int(input())
a = list(map(int, input().split()))
ans = [0 for i in range(9)]
over = 0
for i in range(n):
  if a[i] >= 3200:
    over += 1
  else:
    ans[a[i]//400] = 1
    
print(str(sum(ans)) + " " + str(min(9, sum(ans)+over)))
  
