#include <bits/stdc++.h>
using namespace std;
using ll = long long;
vector<int> L = {1, 400, 800, 1200, 1600, 2000, 2400, 2800, 3200};
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int n;
  cin >> n;
  set<int> colors;
  int lgm = 0;
  for (int i = 0; i < n; i++) {
    int ai;
    cin >> ai;
    for (int x = 0; x < L.size() - 1; x++) {
      if (L[x] <= ai and ai < L[x + 1]) {
        colors.insert(x);
      }
    }
    if (ai >= 3200) {
      lgm++;
    }
  }
  cout << max((int)colors.size(), lgm > 0 ? 1 : 0) << " "
       << min((int)colors.size() + lgm, 8) << '\n';
  return 0;
}
