#include <bits/stdc++.h>
using namespace std;
int main() {
  int N, rate, min = 0, max = 0;
  cin >> N;
  vector<int> v(N);
  vector<int> color(9, 0);
  for (int i = 0; i < N; i++) {
    cin >> v.at(i);
  }
  for (int i = 0; i < N; i++) {
    rate = v.at(i) / 400;
    color.at(rate) += 1;
  }
  for (int i = 0; i < 9; i++) {
    if (color.at(i)) {
      if (i == 8) {
        if (min == 0) {
          ++min;
        }
        max += color.at(i);
      } else {
        ++min;
        ++max;
      }
    }
  }
  cout << min << " " << max << endl;
}
