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