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