n = int(input())
l = list(map(int,input().split()))
ll = [0,400,800,1200,1600,2000,2400,2800,3200]
al = [0] * 9

ans = 0
cnt = 0

for i in range(n):
  for j in range(0,8):
    if l[i] >= 3200:
      cnt = +1
      break
    if ll[j] <= l[i] < ll[j+1]:
      al[j] = 1

if sum(al) != 0:
  print(sum(al), sum(al) + cnt)
else:
  print(1,cnt)
