N=int(input())
A=list(map(int, input().split()))
counter=[0]*9

for a in A:
  cls=min(a//400, 8)
  #print(a, cls)
  if cls>=8:
    counter[8]+=1
  else:
    counter[cls]=1
#print(counter)

#min
print(max(1, sum(counter[0:8])), min(8, sum(counter[0:8])+counter[8]))