#include <bits/stdc++.h>
using namespace std;
int main() {
  int N, sum = 0, msum = 0, a;
  cin >> N;
  vector<int> c(9);
  for (int i = 0; i < N; i++) {
    cin >> a;
    c[a / 400] = 1;
    if (a >= 3200) {
      sum += 1;
    }
  }
  for (int i = 0; i < 8; i++) {
    msum += c[i];
  }
  cout << msum << " " << sum + msum << "\n";
  return 0;
}
