#include <bits/stdc++.h>
int main(void) {
  int n;
  int i;
  scanf("%d", &n);
  int a[n];
  int kind[8];
  int master = 0;
  int target;
  for (i - 0; i < 8; i++) {
    kind[i] = 0;
  }
  for (i = 0; i < n; i++) {
    scanf("%d", &a[i]);
  }
  for (i = 0; i < n; i++) {
    target = a[i] / 400;
    switch (target) {
      case 0:
        kind[0] = 1;
        break;
      case 1:
        kind[1] = 1;
        break;
      case 2:
        kind[2] = 1;
        break;
      case 3:
        kind[3] = 1;
        break;
      case 4:
        kind[4] = 1;
        break;
      case 5:
        kind[5] = 1;
        break;
      case 6:
        kind[6] = 1;
        break;
      case 7:
        kind[7] = 1;
        break;
      default:
        master++;
        break;
    }
  }
  int counter = 0;
  for (i = 0; i < 8; i++) {
    if (kind[i] == 1) {
      counter++;
    }
  }
  printf("%d %d\n", counter, counter + master);
}
