#include <bits/stdc++.h>
int min(int a, int b) { return a > b ? b : a; }
int max(int a, int b) { return a < b ? b : a; }
int main() {
  int n, a, color[9] = {0};
  scanf("%d", &n);
  for (int i = 0; i < n; i++) {
    scanf("%d", &a);
    if (a <= 3199) {
      color[a / 400] = 1;
    } else {
      color[8]++;
    }
  }
  int count = 0;
  for (int i = 0; i < 8; i++) {
    if (color[i] == 1) count++;
  }
  printf("%d %d\n", max(1, count), min(count + color[8], 8));
}
