#include <bits/stdc++.h>
int main() {
  int a, b, c, d, e;
  int f[9];
  e = 0;
  for (b = 0; b < 9; b++) {
    f[b] = 0;
  }
  scanf("%d", &a);
  for (b = 0; b < a; b++) {
    scanf("%d", &c);
    d = c / 400;
    switch (d) {
      case 0:
        f[0] = 1;
        break;
      case 1:
        f[1] = 1;
        break;
      case 2:
        f[2] = 1;
        break;
      case 3:
        f[3] = 1;
        break;
      case 4:
        f[4] = 1;
        break;
      case 5:
        f[5] = 1;
        break;
      case 6:
        f[6] = 1;
        break;
      case 7:
        f[7] = 1;
        break;
      default:
        f[8] = f[8] + 1;
        break;
    }
  }
  for (b = 0; b < 8; b++) {
    e = e + f[b];
  }
  printf("%d %d", e, e + f[8]);
}
