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