#include <bits/stdc++.h>
int main() {
  int val;
  scanf("%d", &val);
  int rate[val];
  for (int i = 0; i != val; i++) {
    scanf("%d", &rate[i]);
  }
  int color[8];
  int rainbow = 0;
  for (int i = 0; i != val; i++) {
    int a = rate[i] / 400;
    if (a < 8) {
      color[a] = 1;
    } else {
      rainbow++;
    }
  }
  int result = 0;
  for (int i = 0; i < 8; i++) {
    result += color[i];
  }
  printf("%d %d\n", result, result + rainbow);
  return 0;
}
