import math

n = input()
l = list(map(int,input().split()))

a = [0]*9
for x in l:
 if math.floor(x/400)>8:
  a[8] += 1
 else:
  a[math.floor(x/400)] += 1
c = 0
for i in range(len(a)):
 if i==8:
  if c==0:
   min=1
  else:
   min = c
  c += a[i]
 elif a[i] >0:
  c+=1

if c>8:
 print("%d %d"% (min, 8))
else:
 print("%d %d"% (min, c))