import numpy as np
rate = [400 * i for i in range(0, 10)]

n = int(input())
a = list(map(int, input().split()))

cnt = np.array([0] * (9))
for i in range(n):
  for j in range(9):
    if rate[j] <= a[i] and a[i] < rate[j+1]:
      cnt[j] += 1

orig = (cnt[:8] > 0).sum()
mins = min(1, orig) if orig == 0 else orig
maxs = orig + cnt[-1]
print(mins, maxs)