#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  vector<int> a(N);
  for (int i = 0; i < N; i++) {
    cin >> a[i];
  }
  vector<bool> add_flag(8, true);
  int rate_normal_num = 0;
  int over_rate_num = 0;
  for (int i = 0; i < N; i++) {
    for (int j = 0; j < 8; j++) {
      if (j * 400 <= a[i] && a[i] <= ((j + 1) * 400 - 1) && add_flag[j]) {
        rate_normal_num++;
        add_flag[j] = false;
      }
    }
    if (3200 <= a[i]) {
      over_rate_num++;
    }
  }
  if (rate_normal_num + over_rate_num > 8) {
    cout << "" << rate_normal_num << ' ' << 8;
  } else {
    cout << "" << rate_normal_num << ' ' << rate_normal_num + over_rate_num;
  }
  return 0;
}
