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