#include <bits/stdc++.h>
using namespace std;
signed main() {
  long long a;
  cin >> a;
  set<long long> c;
  long long d = 0;
  for (long long b = 0; b < a; b++) {
    long long e;
    cin >> e;
    if (e >= 3200) {
      d++;
    } else {
      c.insert(e / 400);
    }
  }
  cout << c.size() << " " << c.size() + d << endl;
}
