#include <bits/stdc++.h>
int main() {
  bool a[8] = {};
  int buf, sum = 0;
  int n, top = 0;
  int max = 0, min = 0;
  scanf("%d", &n);
  int i;
  for (i = 0; i < n; i++) {
    scanf("%d", &buf);
    switch (buf / 400) {
      case 0:
        a[0]++;
        break;
      case 1:
        a[1]++;
        break;
      case 2:
        a[2]++;
        break;
      case 3:
        a[3]++;
        break;
      case 4:
        a[4]++;
        break;
      case 5:
        a[5]++;
        break;
      case 6:
        a[6]++;
        break;
      case 7:
        a[7]++;
        break;
      default:
        top++;
    }
  }
  for (i = 0; i < 8; i++) {
    if (a[i] == 1) sum++;
  }
  if (sum + top > 8)
    max = 8;
  else
    max = sum + top;
  if (sum == 0)
    min = 1;
  else
    min = sum;
  printf("%d %d\n", min, max);
  return 0;
}
