n = int(input())
a = list(map(int,input().split()))
color = [0,0,0,0,0,0,0,0,0]
for ai in a:
  if ai <= 3199:
    rnk = ai // 400
    color[rnk] += 1
  else:
    color[8] += 1
max_color = sum(color)
color2 = color[:8]
min_color = sum(color2)
print(min_color,max_color)