import sys
input = sys.stdin.readline
N = int(input())
a = list(map(int, input().split()))
a.sort()
c = [0] * 9
for i in range(N):
  if a[i] // 400 > 8:
    c[8] += 1
  else:
    c[a[i] // 400] += 1
res = 0
for i in range(8):
  res += c[i] > 0
print(res, res + c[8])