N = int(input())
As = list(map(int, input().split()))
s = set()
ne = 0
for A in As:
  t = A//400
  if t >= 8:
    ne += 1
  else:
    s.add(t)
if len(s) == 0 and ne > 0:
  tmin = 1
else:
  tmin = len(s)
tmax = min(8, len(s)+ne)
print(tmin, tmax)
