#include <bits/stdc++.h>
int main(void) {
  int n, i, min = 0;
  int *a;
  int flg[9] = {};
  scanf("%d", &n);
  a = (int *)malloc(sizeof(int) * (n + 1));
  for (i = 0; i < n; i++) scanf("%d", &a[i]);
  for (i = 0; i < n; i++) {
    switch (a[i] / 400) {
      case 0:
        flg[0] = 1;
        break;
      case 1:
        flg[1] = 1;
        break;
      case 2:
        flg[2] = 1;
        break;
      case 3:
        flg[3] = 1;
        break;
      case 4:
        flg[4] = 1;
        break;
      case 5:
        flg[5] = 1;
        break;
      case 6:
        flg[6] = 1;
        break;
      case 7:
        flg[7] = 1;
        break;
      default:
        flg[8]++;
    }
  }
  for (i = 0; i < 8; i++) min += flg[i];
  printf("%d %d\n", min, min + flg[8]);
  free(a);
  return 0;
}
