#include <bits/stdc++.h>
int main() {
  int n;
  while (scanf("%d", &n) != EOF) {
    int a[110];
    for (int i = 0; i < n; i++) scanf("%d", &a[i]);
    int color[] = {0, 0, 0, 0, 0, 0, 0, 0, 0};
    for (int i = 0; i < n; i++) {
      if (a[i] < 400 && a[i] > 0)
        color[0] = 1;
      else if (a[i] < 800 && a[i] >= 400)
        color[1] = 1;
      else if (a[i] < 1200 && a[i] >= 800)
        color[2] = 1;
      else if (a[i] < 1600 && a[i] >= 1200)
        color[3] = 1;
      else if (a[i] < 2000 && a[i] >= 1600)
        color[4] = 1;
      else if (a[i] < 2400 && a[i] >= 2000)
        color[5] = 1;
      else if (a[i] < 2800 && a[i] >= 2400)
        color[6] = 1;
      else if (a[i] < 3200 && a[i] >= 2800)
        color[7] = 1;
      else if (a[i] >= 3200)
        color[8]++;
    }
    int s = 0;
    for (int i = 0; i < 9; i++) s = s + color[i];
    if (s > 28) s = 28;
    printf("%d %d\n",
           color[0] + color[1] + color[2] + color[3] + color[4] + color[5] +
               color[6] + color[7],
           s);
  }
  return 0;
}
