N = int(input())
A = list(map(int,input().split()))
dic = {}
cnt = 0
for i in range(N):
  if A[i] < 400:
    dic[0] = 1
  elif A[i] < 800:
    dic[1] = 1
  elif A[i] < 1200:
    dic[2] = 1
  elif A[i] < 1600:
    dic[3] = 1
  elif A[i] < 2000:
    dic[4] = 1
  elif A[i] < 2400:
    dic[5] = 1
  elif A[i] < 2800:
    dic[6] = 1
  elif A[i] < 3200:
    dic[7] = 1
  else:
    dic[8] = 1
    cnt += 1
if cnt > 0:
  print(len(dic) - 1,len(dic) + cnt - 1)
else:
  print(len(dic),len(dic))