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