#include <bits/stdc++.h>
int main() {
  int cnt[8] = {};
  int any = 0;
  int N = 0;
  int temp = 0;
  scanf("%d", &N);
  for (int i = 0; i < N; i++) {
    scanf("%d", &temp);
    if (temp >= 3200) {
      any++;
    } else {
      cnt[temp / 400]++;
    }
  }
  int mymin = 0;
  for (int i = 0; i < 8; i++) {
    if (cnt[i] > 0) {
      mymin++;
    }
  }
  int mymax = std::min(8, mymin + any);
  printf("%d %d\n", mymin, mymax);
  return 0;
}
