#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  map<int, int> m;
  cin >> n;
  vector<int> v(n);
  for (int i = 0; i < (int)(n); i++) {
    cin >> v[i];
    if (v[i] < 400)
      m[0]++;
    else if (v[i] >= 400 && v[i] < 800)
      m[1]++;
    else if (v[i] >= 800 && v[i] < 1200)
      m[2]++;
    else if (v[i] >= 1200 && v[i] < 1600)
      m[3]++;
    else if (v[i] >= 1600 && v[i] < 2000)
      m[4]++;
    else if (v[i] >= 2000 && v[i] < 2400)
      m[5]++;
    else if (v[i] >= 2400 && v[i] < 2800)
      m[6]++;
    else if (v[i] >= 2800 && v[i] < 3200)
      m[7]++;
    else
      m[8]++;
  }
  int kind = 0;
  for (auto w : m) {
    if (w.first != 8) kind++;
  }
  cout << kind << " " << kind + m[8] << endl;
  return 0;
}
