#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ull = unsigned long long;
using P = pair<int, int>;
int main() {
  int n, kind = 0, allman = 0;
  bool all = false;
  cin >> n;
  vector<int> c(8, 0);
  for (int i = (0); i < (int)(n); i += 1) {
    int x;
    cin >> x;
    if (x >= 3200) {
      allman++;
      all = true;
    } else {
      c[x / 400]++;
    }
  }
  for (int i = (0); i < (int)(8); i += 1) {
    if (c[i]) {
      kind++;
    }
  }
  if (all) {
    cout << max(kind, 1) << " " << min(8, kind + allman) << endl;
  } else {
    cout << kind << " " << kind << endl;
  }
  return 0;
}
