#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  vector<int> a(n);
  for (int i = 0; i < n; i++) {
    cin >> a[i];
  }
  int color[9] = {0};
  for (auto v : a) {
    if (v < 3200) {
      color[v / 400]++;
    } else {
      color[8]++;
    }
  }
  int num = 0;
  for (int i = 0; i < 8; i++) {
    if (color[i] != 0) {
      num++;
    }
  }
  cout << num << " " << num + color[8] << endl;
  return 0;
}
