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