#include <bits/stdc++.h>
using namespace std;
int rate[] = {1, 400, 800, 1200, 1600, 2000, 2400, 2800, 3200, 4900};
int main() {
  int flag[9] = {0};
  int N;
  cin >> N;
  for (int i = 0; i < N; i++) {
    int rr;
    cin >> rr;
    for (int j = 0; j < 9; j++) {
      if (rr >= rate[j] && rr < rate[j + 1]) {
        flag[j]++;
        break;
      }
    }
  }
  int res = 0;
  for (int i = 0; i < 8; i++) {
    if (flag[i] > 0) res++;
  }
  cout << res << " " << res + flag[8] << endl;
  return 0;
}
