#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  int n;
  cin >> n;
  vector<bool> a(8, false);
  int r;
  for (int i = 0; i < (n); i++) {
    cin >> r;
    if (r < 400)
      a[0] = true;
    else if (r < 800)
      a[1] = true;
    else if (r < 1200)
      a[2] = true;
    else if (r < 1600)
      a[3] = true;
    else if (r < 2000)
      a[4] = true;
    else if (r < 2400)
      a[5] = true;
    else if (r < 2800)
      a[6] = true;
    else if (r < 3200)
      a[7] = true;
    else
      a.push_back(true);
  }
  int res = 0, couf = 0;
  for (bool flg : a) {
    if (flg)
      res++;
    else
      couf++;
  }
  cout << 8 - couf << " " << res << endl;
}
