N=int(input())
a=list(map(int,input().split()))
mi=0
ma=0
l=[]
count=0
for i in range(N):
 if a[i]<2800:
  l.append(a[i]//400)
 else:
  count=count+1

print(len(set(l))+min(1,count),len(set(l))+max(0,count))