#include <bits/stdc++.h>
using namespace std;
int day[12] = {31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};
int main() {
  int v[9] = {0};
  int n;
  cin >> n;
  for (int i = (int)0; i < (int)n; i++) {
    int x;
    cin >> x;
    if (x >= 3200) {
      v[8]++;
      continue;
    }
    v[x / 400] = 1;
  }
  cout << accumulate(v, v + 8, 0) << " ";
  cout << min(accumulate(v, v + 8, 0) + v[8], 8) << endl;
  return 0;
}
