#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.at(i);
  }
  vector<int> color(8, 0);
  int king = 0;
  for (int i = 0; i < N; i++) {
    int x = a.at(i) / 400;
    if (x < 8) {
      color.at(x) = 1;
    } else {
      king++;
    }
  }
  int sum = 0;
  for (int i = 0; i < 8; i++) {
    sum += color.at(i);
  }
  if (sum == 0) {
    cout << 1 << " " << max(king, 8) << endl;
  } else {
    cout << sum << " " << min(sum + king, 8) << endl;
  }
}
