n = int(input())
a = list(map(int,input().split()))
ans = set()
cnt = 0
for i in range(n):
  if a[i] < 400:
    ans.add(1)
  elif a[i] < 800:
    ans.add(2)
  elif a[i] < 1200:
    ans.add(3)
  elif a[i] < 1600:
    ans.add(4)
  elif a[i] < 2000:
    ans.add(5)
  elif a[i] < 2400:
    ans.add(6)
  elif a[i] < 2800:
    ans.add(7)
  elif a[i] < 3200:
    ans.add(8)
  else:
    cnt += 1

print(len(ans),len(ans)+cnt)