#include <bits/stdc++.h>
using namespace std;
void gen_sosuu(int sosuu[]) {
  for (int i = 0; i < (int)(100010); i++) {
    sosuu[i] = true;
  }
  sosuu[0] = false;
  sosuu[1] = false;
  sosuu[2] = true;
  for (int i = (2); i < (int)(sqrt(100000) + 1); i++) {
    if (sosuu[i] == false) continue;
    for (int j = 2; i * j <= 100000; j++) {
      sosuu[i * j] = false;
    }
  }
}
int cls[10] = {0};
int n;
int a;
int main() {
  scanf("%d", &n);
  for (int i = 0; i < (int)(n); i++) {
    scanf("%d", &a);
    for (int j = 0; j < (int)(9); j++) {
      if (j == 8) {
        cls[j]++;
        break;
      }
      if (a < 400 * (j + 1)) {
        cls[j]++;
        break;
      }
    }
  }
  int sum = 0;
  for (int i = 0; i < (int)(8); i++) {
    if (cls[i] > 0) sum++;
  }
  printf("%d ", max(1, sum));
  sum = min(8, sum + cls[8]);
  printf("%d\n", sum);
}
