#include <bits/stdc++.h>
using namespace std;
int main(void) {
  int N;
  const int r_val[] = {1, 400, 800, 1200, 1600, 2000, 2400, 2800, 3200, 5000};
  const int r_num = 9;
  int rank[r_num];
  for (int i = 0; i < r_num; ++i) rank[i] = 0;
  cin >> N;
  for (int i = 0; i < N; ++i) {
    int a;
    cin >> a;
    for (int i = 0; i < r_num; ++i) {
      if (r_val[i] <= a && a < r_val[i + 1]) {
        ++rank[i];
        break;
      }
    }
  }
  int min_ans = 0;
  for (int i = 0; i < r_num - 1; ++i) {
    if (rank[i] != 0) ++min_ans;
  }
  int max_ans = min_ans + rank[r_num - 1];
  cout << min_ans << ' ' << max_ans << '\n';
  return 0;
}
