#include <bits/stdc++.h>
int main() {
  int i = 0;
  int n = 0;
  scanf("%d", &n);
  int dat[n];
  int colorbit = 0;
  int ultimat = 0;
  for (i = 0; i < n; i++) {
    scanf("%d", &dat[i]);
    int g = dat[i] / 400;
    switch (g) {
      case 0:
        colorbit = colorbit | 1;
        break;
      case 1:
        colorbit = colorbit | 2;
        break;
      case 2:
        colorbit = colorbit | 4;
        break;
      case 3:
        colorbit = colorbit | 8;
        break;
      case 4:
        colorbit = colorbit | 16;
        break;
      case 5:
        colorbit = colorbit | 32;
        break;
      case 6:
        colorbit = colorbit | 64;
        break;
      case 7:
        colorbit = colorbit | 128;
        break;
      default:
        ultimat++;
        break;
    }
  }
  int kind = 0;
  if (colorbit & 1) {
    kind++;
  }
  if (colorbit & 2) {
    kind++;
  }
  if (colorbit & 4) {
    kind++;
  }
  if (colorbit & 8) {
    kind++;
  }
  if (colorbit & 16) {
    kind++;
  }
  if (colorbit & 32) {
    kind++;
  }
  if (colorbit & 64) {
    kind++;
  }
  if (colorbit & 128) {
    kind++;
  }
  int min = 0;
  int max = 0;
  if (kind == 0) {
    if (ultimat == 0) {
      min = 0;
      max = 0;
    } else {
      min = 1;
      max = ultimat;
      if (max > 8) {
        max = 8;
      }
    }
  } else {
    if (ultimat == 0) {
      min = kind;
      max = kind;
    } else {
      min = kind;
      max = kind + ultimat;
      if (max > 8) {
        max = 8;
      }
    }
  }
  printf("%d %d\n", min, max);
  return 0;
}
