#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  vector<bool> colors(8, false);
  int under = 0;
  int master = 0;
  cin >> n;
  vector<int> a(n);
  for (auto& x : a) {
    cin >> x;
    if (x < 3200) {
      if (!colors[x / 400]) {
        ++under;
        colors[x / 400] = true;
      }
    } else {
      ++master;
    }
  }
  cout << max(under, 1) << ' ' << min(8, under + master) << endl;
  return 0;
}
