#include <bits/stdc++.h>
using namespace std;
int main(int argc, char const *argv[]) {
  bool rate[8];
  for (int i = 0; i < 8; i++) rate[i] = false;
  int N;
  cin >> N;
  int count = 0;
  for (int i = 0; i < N; i++) {
    int a;
    cin >> a;
    if (a < 3200) {
      rate[a / 400] = true;
    } else {
      count++;
    }
  }
  int calc = 0;
  for (int i = 0; i < 8; i++) {
    if (rate[i]) calc++;
  }
  cout << calc << " " << calc + count << endl;
  return 0;
}
