#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  int r[9] = {0, 0, 0, 0, 0, 0, 0, 0, 0};
  for (int i = 0; i < N; i++) {
    int rate;
    cin >> rate;
    if (rate / 400 <= 7) {
      int n = rate / 400;
      r[n] = 1;
    } else {
      r[8]++;
    }
  }
  int m = 0;
  for (int i = 0; i < 8; i++) {
    m += r[i];
  }
  int M = m + r[8];
  cout << m << " " << M << endl;
}
