#include <bits/stdc++.h>
using namespace std;
int N, a, r[10] = {0}, res = 0;
int main() {
  scanf("%d", &N);
  for (int i = 0; i < N; i++) {
    scanf("%d", &a);
    if (a >= 3200) {
      r[8]++;
      continue;
    }
    int o = 0;
    for (int p = 399; p < 3200 && p < a; p += 400) o++;
    r[o]++;
  }
  for (int i = 0; i < 8; i++) res += r[i] > 0 ? 1 : 0;
  printf("%d %d\n", res, res + r[8]);
  return 0;
}
