#include <bits/stdc++.h>
using namespace std;
int main() {
  int i = 0;
  int n = 0;
  int c[1000] = {0};
  int s[11] = {0};
  int count = 0;
  int b = 0;
  scanf("%d", &n);
  for (i = 0; i < n; i++) {
    scanf("%d", &c[i]);
    if (c[i] <= 399) {
      s[0]++;
    } else if (c[i] <= 799) {
      s[1]++;
    } else if (c[i] <= 1199) {
      s[2]++;
    } else if (c[i] <= 1599) {
      s[3]++;
    } else if (c[i] <= 1999) {
      s[4]++;
    } else if (c[i] <= 2399) {
      s[5]++;
    } else if (c[i] <= 2799) {
      s[6]++;
    } else if (c[i] <= 3199) {
      s[7]++;
    } else {
      s[8]++;
    }
  }
  for (i = 0; i < 9; i++) {
    if (s[i] > 0 && i != 8) {
      count++;
    }
  }
  if (count == 0 && s[8] <= 9) {
    printf("0 %d\n", s[8]);
  } else if (count == 0 && s[8] > 9) {
    printf("0 9\n");
  } else if (count + s[8] <= 9 && count > 0) {
    printf("%d %d\n", count, count + s[8]);
  } else if (count + s[8] > 10 && count > 0) {
    printf("%d 9\n", count);
  }
  return 0;
}
