#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n, t, c = 0;
  cin >> n;
  vector<long long> a(9, 0);
  for (long long i = 0; i < n; i++) {
    cin >> t;
    for (long long j = 1; j < 9; j++) {
      if (t < j * 400) {
        a[j - 1]++;
        break;
      }
    }
    if (t >= 3200) a[8]++;
  }
  for (long long i = 0; i < 8; i++) {
    if (a[i] > 0) c++;
  }
  cout << max((long long)1, c) << " " << min((long long)9, c + a[8]) << endl;
}
