#include <bits/stdc++.h>
using namespace std;
int main(void) {
  int N;
  cin >> N;
  int A[N];
  int ans = 0;
  int tmp = 0;
  vector<int> X(9, 0);
  for (int i = 0; i < N; i++) {
    cin >> A[i];
    X[A[i] / 400]++;
  }
  for (int i = 0; i < 8; i++) {
    if (X[i] >= 1) {
      ans++;
    }
  }
  cout << ans << " ";
  ans += X[8];
  cout << ans << endl;
  return 0;
}
