#include <bits/stdc++.h>
int main() {
  int n, i;
  int data[100];
  int rate[8] = {};
  int king = 0;
  int ans = 0;
  scanf("%d", &n);
  for (i = 0; i < n; i++) {
    scanf("%d", &data[i]);
  }
  for (i = 0; i < n; i++) {
    if (1 <= data[i] && data[i] < 400) {
      rate[0] = 1;
    } else if (data[i] < 800) {
      rate[1] = 1;
    } else if (data[i] < 1200) {
      rate[2] = 1;
    } else if (data[i] < 1600) {
      rate[3] = 1;
    } else if (data[i] < 2000) {
      rate[4] = 1;
    } else if (data[i] < 2400) {
      rate[5] = 1;
    } else if (data[i] < 2800) {
      rate[6] = 1;
    } else if (data[i] < 3200) {
      rate[7] = 1;
    } else {
      king++;
    }
  }
  for (i = 0; i < 8; i++) {
    if (rate[i] == 1) ans++;
  }
  printf("%d ", ans);
  ans += king;
  printf("%d\n", ans);
  return 0;
}
