#include <bits/stdc++.h>
using namespace std;
int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  int N, a, rank, n_exp;
  cin >> N;
  vector<int> color(8, 0);
  n_exp = 0;
  for (int i = 0; i < N; ++i) {
    cin >> a;
    rank = a / 400;
    if (rank <= 7) {
      color[rank] = 1;
    } else {
      n_exp += 1;
    }
  }
  int c_min, c_max;
  c_min = max(1, accumulate(color.begin(), color.end(), 0));
  c_max = min(8, accumulate(color.begin(), color.end(), 0) + n_exp);
  cout << c_min << " " << c_max << "\n";
  return 0;
}
