#include <bits/stdc++.h>
using namespace std;
int main() {
  int any_count = 0;
  map<int, int> color_counts;
  int n;
  cin >> n;
  for (int i = 0; i < n; ++i) {
    int a;
    cin >> a;
    if (3200 <= a)
      any_count++;
    else
      color_counts[a / 400]++;
  }
  int base_n_colors = static_cast<int>(color_counts.size());
  int ans_min = base_n_colors;
  if (ans_min == 0 && any_count != 0) ans_min = 1;
  int ans_max = min(8, base_n_colors + any_count);
  cout << ans_min << " " << ans_max << endl;
  return 0;
}
