#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  map<int, int> M;
  for (int i = 0; i < N; i++) {
    int a;
    cin >> a;
    a = a / 400;
    M[a]++;
  }
  int min = 0;
  for (int i = 0; i < 8; i++) {
    if (M[i] != 0) {
      min++;
    }
  }
  int count = 0;
  for (int i = 8; i <= 12; i++) {
    if (M[i] != 0) {
      count += M[i];
    }
  }
  int max = min + count;
  if (max > 8) {
    max = 8;
  }
  cout << min << " " << max << endl;
  return 0;
}
