#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  vector<int> a(n);
  for (auto &v : a) cin >> v;
  vector<int> cnt(9, 0);
  for (int i = 0; i < n; i++) {
    for (int j = 0; j < 9; j++) {
      if (j == 8) {
        cnt[8]++;
      } else if (a[i] < (j + 1) * 400) {
        cnt[j] = true;
        break;
      }
    }
  }
  cout << max(1, accumulate(cnt.begin(), cnt.begin() + 8, 0)) << " "
       << min(9, accumulate(cnt.begin(), cnt.begin() + 8, 0) + cnt[8]) << endl;
  return 0;
}
