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