n=int(input())
a=list(map(int,input().split()))
lis=[0]*9
for i in range(n):
  if 1<=a[i]<=399: lis[0]+=1
  elif a[i]<=799: lis[1]+=1
  elif a[i]<=1199: lis[2]+=1
  elif a[i]<=1599: lis[3]+=1
  elif a[i]<=1999: lis[4]+=1
  elif a[i]<=2399: lis[5]+=1
  elif a[i]<=2799: lis[6]+=1
  elif a[i]<=3199: lis[7]+=1
  else: lis[8]+=1

min_color = 0
for i in range(len(lis)-1):
    if lis[i]>0: min_color+=1
max_color = min_color + lis[-1]
print(min_color, max_color)  