#include <bits/stdc++.h>
using namespace std;
void solve() {
  int n;
  cin >> n;
  vector<int> rates(9);
  while (n--) {
    int rate;
    cin >> rate;
    if (rate >= 3200)
      rates[8]++;
    else
      rates[rate / 400]++;
  }
  int kind = 0;
  for (int i = 0; i < 8; i++) {
    if (rates[i] != 0) {
      kind++;
    }
  }
  cout << kind << " " << kind + rates[8] << endl;
}
void wrapper() {
  for (int i = 0; i < (4); ++i) {
    cout << "[TEST " << (i + 1) << "]\n";
    solve();
    cout << "\n";
  }
}
int main() {
  (cin.tie(0), cout.tie(0), ios::sync_with_stdio(false));
  solve();
}
