#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
  cin.tie(nullptr);
  ios::sync_with_stdio(false);
  vector<int> table = {1, 400, 800, 1200, 1600, 2000, 2400, 2800, 3200};
  auto color = [&](int r) -> int {
    return upper_bound(table.begin(), table.end(), r) - table.begin();
  };
  int n;
  cin >> n;
  set<int> cs;
  int cnt_king = 0;
  for (int i = 0; i < n; i++) {
    int a;
    cin >> a;
    if (a >= 3200) {
      cnt_king++;
    } else {
      cs.insert(color(a));
    }
  }
  cout << max((int)cs.size(), 1) << " " << min(8, (int)cs.size() + cnt_king)
       << endl;
  return 0;
}
