#include <bits/stdc++.h>
using ll = long long;
using namespace std;
int main() {
  int N;
  cin >> N;
  bool colors[8] = {false};
  int result_max = 0;
  int result_min = 0;
  int a;
  for (int i = 0; i < N; i++) {
    cin >> a;
    if (a >= 3200) {
      result_max++;
    } else {
      for (int j = 1; j <= 8; j++) {
        if (a < j * 400 and (j - 1) * 400 <= a) {
          colors[j - 1] = true;
        }
      }
    }
  }
  for (int i = 0; i < 8; i++) {
    if (colors[i]) {
      result_max++;
      result_min++;
    }
  }
  cout << result_min << " " << result_max << endl;
  return 0;
}
