n = int(input())

count = 0
colors = [0]*8
cList = list(map(int,input().split()))

for i in cList:
  if i >= 3200:
    count += 1
  else:
    colors[(i//400)] = 1

print(sum(colors),sum(colors)+count)
  