N = int(input())
A = [int(x) for x in input().split()]

def col(x):
  if x < 400:
    return 0
  if x < 800:
    return 1
  if x < 1200:
    return 2
  if x < 1600:
    return 3
  if x < 2000:
    return 4
  # 等差かよ
  if x < 2400:
    return 5
  if x < 2800:
    return 6
  if x < 3200:
    return 7
  return 8

cnt = [0] * 9
for a in A:
  cnt[col(a)] += 1

basic = sum([min(x,1) for x in cnt[:8]])
rainbow = cnt[8]

MIN = max(1,basic)
MAX = min(basic+rainbow,8)
print(MIN,MAX)