#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int level[8] = {};
  int genius = 0;
  for (int i = 0; i < n; i++) {
    int t;
    cin >> t;
    if (t >= 3200) {
      genius++;
    } else {
      level[t / 400]++;
    }
  }
  int count = count_if(level, level + 8, [](int x) { return x != 0; });
  cout << count << " " << count + genius << endl;
  return 0;
}
