#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  vector<int> rate_count(9, 0);
  for (int i = 0; i < N; i++) {
    int ai_rate;
    cin >> ai_rate;
    rate_count[min(ai_rate / 400, 8)]++;
  }
  int exist_rate_count = 0;
  for (int i = 0; i < 8; i++) {
    if (rate_count[i] > 0) {
      exist_rate_count++;
    }
  }
  cout << max(exist_rate_count, 1) << " "
       << min(exist_rate_count + rate_count[8], 8) << endl;
  return 0;
};
