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