#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;
    for (j = 0; j < 8; j++) {
      if (x >= j * 400 && x < 400 * (j + 1)) {
        con[j]++;
        whigh = false;
        break;
      }
    }
    if (whigh) highnum++;
  }
  int num = 0;
  for (j = 0; j < 8; j++)
    if (con[j] > 0) num++;
  printf("%d %d", num, min(num + highnum, 8));
  return 0;
}
