#include <bits/stdc++.h>
using namespace std;
int his[9] = {};
int main(int argc, char **argv) {
  (void)argc;
  (void)argv;
  int N;
  cin >> N;
  for (int i = 1; i <= N; i++) {
    int a;
    cin >> a;
    int c = a / 400;
    if (3200 <= a) {
      c = 8;
    }
    his[c]++;
  }
  int cc = 0;
  for (int i = 0; i <= 7; i++) {
    if (0 < his[i]) {
      cc++;
    }
  }
  printf("%d %d\n", cc, cc + his[8]);
  return 0;
}
