#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  int input;
  int color[9] = {};
  cin >> N;
  for (int i = 0; i < N; i++) {
    cin >> input;
    color[min((input / 400), 8)]++;
  }
  int Min = 0, Max = 0;
  for (int i = 0; i < 8; i++) {
    if (color[i] > 0) {
      Min++;
      Max++;
    }
  }
  Max = min((Max + color[8]), 8);
  if (Min == 0) {
    Min = 1;
  }
  cout << Min << " " << Max;
  return 0;
}
