#include <bits/stdc++.h>
using std::cin;
using std::cout;
using std::endl;
int main(void) {
  bool check[8] = {false};
  int n;
  cin >> n;
  int a;
  int more = 0;
  for (int i = 0; i < n; i++) {
    cin >> a;
    if (a >= 3200) {
      more++;
      continue;
    }
    if (check[a / 400] == false) {
      check[a / 400] = true;
    }
  }
  int color_num = 0;
  for (int i = 0; i < 8; i++) {
    if (check[i] == true) {
      color_num++;
    }
  }
  cout << color_num << " ";
  if (color_num + more > 8) {
    cout << 8 << endl;
  } else {
    cout << color_num + more << endl;
  }
  return 0;
}
