#include <bits/stdc++.h>
using namespace std;
int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  long long N;
  cin >> N;
  vector<long long> a(N);
  int r[9] = {0};
  int col = 0;
  for (int i = 0; i < N; i++) {
    cin >> a[i];
    int R = a[i] / 400;
    if (R >= 8) {
      r[8]++;
    } else {
      if (r[R] == 0) {
        col++;
      }
      r[R]++;
    }
  }
  cout << max(col, 1) << " " << min(max(col, 1) + r[8], 8) << endl;
}
