#include <bits/stdc++.h>
using namespace std;
int N;
int main() {
  int inp;
  int rate[9] = {0, 0, 0, 0, 0, 0, 0, 0, 0};
  int min = 0;
  cin >> N;
  for (int i = 0; i < N; i++) {
    cin >> inp;
    inp /= 400;
    rate[inp] += 1;
  }
  for (int i = 0; i < 8; i++) {
    if (rate[i] != 0) min++;
  }
  cout << min << " " << min + rate[8] << endl;
  return 0;
}
