n = int(input())
a = list(map(int,input().split()))
ans = [0] * 9

for i in a:
  if i >= 1 and i <= 399:
    ans[0] += 1
  elif i >= 400 and i <= 799:
    ans[1] += 1
  elif i >= 800 and i <= 1199:
    ans[2] += 1
  elif i >= 1200 and i <= 1599:
    ans[3] += 1
  elif i >= 1600 and i <= 1999:
    ans[4] += 1
  elif i >= 2000 and i <= 2399:
    ans[5] += 1
  elif i >= 2400 and i <= 2799:
    ans[6] += 1
  elif i >= 2800 and i <= 3199:
    ans[7] += 1
  else:
    ans[8] += 1
    
maxv = 0
minv = 0

for i in range(0,8):
  if ans[i] > 0:
    minv += 1
    
if minv == 0:
  minv = 1
maxv = str(minv + ans[8])
minv = str(minv)


#print(ans)
print("".join([minv, " ", maxv]))