#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, min_val = 0, color[8], free_num = 0;
  scanf("%d", &n);
  fill(color, color + 8, 0);
  for (int i = 0; i < n; i++) {
    int a;
    scanf("%d", &a);
    if (a >= 3200)
      free_num++;
    else if (color[a / 400] == 0)
      color[a / 400] = 1;
  }
  for (int i = 0; i < 8; i++) {
    min_val = min_val + color[i];
  }
  printf("%d %d\n", min_val, min_val + free_num);
  return 0;
}
