n = int(input())
a = [0]*9
i = input().split()
for x in range(n):
 y = int(i[x])
 if 1<= y <=399:
  a[0] += 1
 elif 400<= y <=799:
  a[1] += 1
 elif 800 <= y <= 1199:
  a[2] += 1
 elif 1200 <= y <= 1599:
  a[3] += 1
 elif 1600 <= y <= 1999:
  a[4] += 1
 elif 2000 <= y <= 2399:
  a[5] += 1
 elif 2400 <= y<= 2799:
  a[6] += 1
 elif 2800 <= y <= 3199:
  a[7] += 1
 else :
  a[8] += 1 
count = 0
for x in range(8):
 if a[x] > 0:
  count += 1
max = count + a[8]
if max > 8:
 max = 8
if count == 0 and a[8] > 0:
 count = 1
print(count,max)