#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  vector<int> R(9);
  for (int i = 0; i < N; ++i) {
    int rate;
    cin >> rate;
    if (3200 <= rate) {
      ++R[8];
      continue;
    }
    for (int j = 0; j < 8; ++j) {
      if (j * 400 <= rate && rate < (j + 1) * 400) {
        ++R[j];
        break;
      }
    }
  }
  int min_cnt = 0;
  int max_cnt = 0;
  int cnt = 0;
  for (int i = 0; i < 9; ++i) {
    if (0 < R[i]) {
      if (i == 8) {
        min_cnt += max(0, R[i] - cnt);
        max_cnt += R[i];
      } else {
        ++min_cnt;
        ++max_cnt;
        ++cnt;
      }
    }
  }
  cout << min_cnt << " " << max_cnt << endl;
}
