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