#include <bits/stdc++.h>
using namespace std;
int main() {
  int N, a;
  cin >> N;
  vector<int> colors(8, 0);
  int free = 0;
  for (int i = 0; i < N; ++i) {
    cin >> a;
    if (a >= 3200) {
      free++;
    } else {
      a /= 400;
      colors[a]++;
    }
  }
  int num_color = 0;
  for (int c : colors) {
    if (c > 0) num_color++;
  }
  int min_color = num_color;
  int max_color = min(8, num_color + free);
  cout << min_color << " " << max_color << endl;
  return 0;
}
