#include <bits/stdc++.h>
using ll = long long;
using namespace std;
int main() {
  int n;
  cin >> n;
  map<int, int> m;
  for (int i = 0; i < (int)(n); i++) {
    int in;
    cin >> in;
    in /= 400;
    if (in > 8) in = 8;
    m[in]++;
  }
  int mn, mx;
  mn = mx = 0;
  for (auto p : m) {
    if (p.first < 8) {
      mn++;
      mx++;
    } else {
      mx += p.second;
    }
  }
  cout << mn << " " << mx << endl;
  return 0;
}
