#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
const int INF = 1e9;
int main(void) {
  int n;
  cin >> n;
  bool hai = 0, tya = 0, midori = 0, mizu = 0, ao = 0, ki = 0, dai = 0, aka = 0;
  int saikyo = 0;
  for (int i = 0; i < n; i++) {
    int rate;
    cin >> rate;
    if (rate <= 399)
      hai = 1;
    else if (rate <= 799)
      tya = 1;
    else if (rate <= 1199)
      midori = 1;
    else if (rate <= 1599)
      mizu = 1;
    else if (rate <= 1999)
      ao = 1;
    else if (rate <= 2399)
      ki = 1;
    else if (rate <= 2799)
      dai = 1;
    else if (rate <= 3199)
      aka = 1;
    else
      saikyo++;
  }
  int res = 0;
  if (hai) res++;
  if (tya) res++;
  if (midori) res++;
  if (mizu) res++;
  if (ao) res++;
  if (ki) res++;
  if (dai) res++;
  if (aka) res++;
  cout << res << " " << res + saikyo << endl;
}
