#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  vector<int> data(n);
  for (int i = 0; i < n; i++) {
    cin >> data.at(i);
  }
  int c, r;
  c = 0;
  r = 0;
  for (int k = 0; k <= 7; k++) {
    for (int i = 0; i < n; i++) {
      if (400 * k <= data.at(i) and data.at(i) < 400 * (k + 1)) {
        c++;
        break;
      }
    }
  }
  for (int i = 0; i < n; i++) {
    if (data.at(i) >= 3200) {
      r++;
    }
  }
  int max, min;
  max = c + r;
  min = c;
  cout << min << " " << max << endl;
}
