n = int(input())
a = list(map(int,input().split()))
cnt=0
arr=[]
for i in range(n):
  color=a[i]//400
  if color>=8:
    cnt+=1
  else:
    arr.append(color)
if len(set(arr))+cnt<=8:
  b = len(set(arr))+cnt
else:
  b=8
if len(set(arr))>0:
  print(len(set(arr)),b)
else:
  print(1,b)