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