#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int c[9];
  for (int i = 0; i < 9; i++) {
    c[i] = 0;
  }
  for (int i = 0; i < n; i++) {
    int a;
    scanf("%d", &a);
    int b;
    b = a / 400;
    if (b >= 8) b = 8;
    c[b]++;
    ;
  }
  int min = 0;
  int max = 0;
  for (int i = 0; i < 8; i++) {
    if (c[i] >= 1) {
      min++;
      max++;
    }
  }
  max += c[8];
  if (max > 8) max = 8;
  printf("%d", min);
  printf(" ");
  printf("%d", max);
  return 0;
}
