#include <bits/stdc++.h>
int main(void) {
  int n;
  scanf("%d", &n);
  int mem[9];
  for (int i = 0; i < 9; i++) {
    mem[i] = 0;
  }
  for (int i = 0; i < n; i++) {
    int a;
    scanf("%d", &a);
    if (a > 3200) a = 3200;
    mem[a / 400]++;
  }
  int count = 0;
  for (int i = 0; i < 8; i++) {
    if (mem[i] != 0) count++;
  }
  int mi, ma;
  mi = count;
  ma = mem[8] + count;
  printf("%d %d\n", mi, ma);
  return 0;
}
