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 = 1 if  orig == 0 and cnt[-1] != 0 else orig
maxs = max(8,orig + cnt[-1])
print(mins, maxs)