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