#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) {
    if (a[i] >= 3200) {
      rate[8] += 1;
    } else {
      for (int j = 0; j < 8; ++j) {
        if (a[i] < 400 * (j + 1)) {
          rate[j] += 1;
          break;
        }
      }
    }
  }
  int num = 0;
  for (int i = 0; i < 8; ++i) {
    if (rate[i] > 0) {
      num += 1;
    }
  }
  if (num < 1) {
    num = 1;
  }
  int num2 = num + rate[8];
  if (num2 > 8) {
    num2 = 8;
  }
  cout << num << " " << num2 << endl;
  return 0;
}
