#include <bits/stdc++.h>
using namespace std;
int main() {
  int N, a;
  int memo[15] = {};
  int nmin = 0;
  cin >> N;
  for (int i = 0; i < N; i++) {
    cin >> a;
    memo[a / 400]++;
  }
  for (int i = 9; i <= 12; i++) memo[8] += memo[i];
  if (memo[8] == N) {
    cout << 1 << " " << min(N, 8) << endl;
    return 0;
  }
  for (int i = 0; i <= 7; i++) {
    if (memo[i] != 0) nmin++;
  }
  cout << nmin << " " << nmin + min(memo[8], 8 - nmin) << endl;
  return 0;
}
