#include <bits/stdc++.h>
using namespace std;
int color[9];
int main() {
  int n;
  int ct = 0;
  scanf("%d", &n);
  while (n--) {
    int x;
    scanf("%d", &x);
    color[min(x / 400, 8)]++;
  }
  for (int i = 0; i < 8; i++) ct += (color[i] >= 1);
  printf("%d %d", ct, ct + (color[8]));
}
