#	ABC 064: C [beta]

N = int(input())

scores = list(map(int, input().split()))
for i in range(N):
  scores[i] = scores[i] // 400
  if scores[i] > 8:
    scores[i] = 8

color=0

for i in range(8):
  if i in scores:
    color += 1
    
free = scores.count(8)

max_colors = color+ free

print(color, max_colors)