N=int(input())
a=list(map(int,input().split()))
count=0
for i in range(0,2801,400):
  for j in range(N):
    if i<=a[j]<=399+i:
      count+=1
      break
c=0
for i in range(N):
  if 3200<=a[i]:
    c+=1

if c>=2:
  if count<6:
    print(count,count+2)
  else:
    print(count,7)
elif c==1:
  if count<7:
    print(count,count+1)
  else:
    print(count,7)
else:
  print(count,count)