# /usr/bin/python
# -*- coding: utf-8 -*-
import math
from collections import defaultdict



def check(a):
  if a <= 399: return 0
  elif a <= 799: return 1
  elif a <= 1199: return 2
  elif a <= 1599: return 3
  elif a <= 1999: return 4
  elif a <= 2399: return 5
  elif a <= 2799: return 6
  elif a <= 3199: return 7
  else: return 8


def main():
  N = int(input())
  An = list(map(int, input().split()))
  colors = defaultdict(lambda:0)
  for a in An:
    colors[check(a)] += 1
  mn = len(colors)
  mx = mn
  if colors[8] > 0:
    mn -= 1
    mx = min(9,mn+colors[8])
  return [mn,mx]

if __name__ == "__main__":
  ans = main()
  print(ans[0],ans[1])