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