#include <bits/stdc++.h>
using namespace std;
const int MAXC = 10;
int n;
int qtdColor[MAXC];
int color(int k) { return k / 400; }
int main() {
  scanf("%d", &n);
  int choose = 0;
  for (int i = 1; i <= n; i++) {
    int v;
    scanf("%d", &v);
    if (v >= 3200)
      choose++;
    else
      qtdColor[color(v)]++;
  }
  if (choose == n) {
    printf("1 %d\n", min(8, n));
    return 0;
  }
  int mn = 0;
  for (int i = 0; i < MAXC; i++)
    if (qtdColor[i] > 0) mn++;
  int mx = mn;
  mx = min(8, mx + choose);
  printf("%d %d\n", mn, mx);
}
