#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, i, j;
  int con[8];
  for (j = 0; j < 8; j++) con[j] = 0;
  scanf("%d", &n);
  int highnum = 0;
  for (i = 0; i < n; i++) {
    int x;
    scanf("%d", &x);
    bool whigh = true;
    if (x >= 3200)
      highnum++;
    else {
      for (j = 0; j < 8; j++) {
        if (x >= j * 400 && x < 400 * (j + 1)) {
          con[j]++;
          whigh = false;
          break;
        }
      }
    }
  }
  int num = 0;
  for (j = 0; j < 8; j++)
    if (con[j] > 0) num++;
  if (num = 0) {
    printf("%d %d", 1, highnum);
  } else {
    printf("%d %d", num, num + highnum);
  }
  return 0;
}
