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