#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, a, t = 0, e = 0;
  bool c[8] = {false};
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> a;
    if (a < 3200) {
      int f = a / 400;
      if (!c[f]) {
        t += 1;
        c[f] = true;
      }
    } else {
      e++;
    }
  }
  cout << t << " " << e + t << endl;
}
