#include <bits/stdc++.h>
using namespace std;
const int INF = 1e9;
int main() {
  int n;
  cin >> n;
  set<int> s;
  int cnt_3200 = 0;
  for (int i = 0; i < n; i++) {
    int ai;
    cin >> ai;
    int tmp = ai / 400;
    if (tmp > 7) {
      ++cnt_3200;
    } else {
      s.insert(tmp);
    }
  }
  cout << s.size() << " " << s.size() + cnt_3200 << endl;
}
