n = int(input())
a = list(map(int, input().split()))
rate = [0]*8
red = 0
for i in range(n) :
  if(a[i] >= 3200) :
    red += 1
  elif(rate[a[i]//400] == 0) : 
    rate[a[i]//400] += 1
print("{} {}".format(sum(rate), sum(rate)+red))