#include <bits/stdc++.h>
using namespace std;
int main() {
  int rating[] = {1, 400, 800, 1200, 1600, 2000, 2400, 2800, 3200, 4801};
  int range[9];
  int N, a;
  scanf("%d", &N);
  for (int i = 0; i < 9; i++) range[i] = 0;
  for (int i = 0; i < N; i++) {
    scanf("%d", &a);
    for (int j = 0; j < 9; j++) {
      if (a >= rating[j] && a < rating[j + 1]) {
        range[j]++;
        break;
      }
    }
  }
  int ans = 0;
  for (int i = 0; i < 8; i++) {
    if (range[i] != 0) ans++;
  }
  printf("%d %d\n", ans, ans + range[8]);
  return 0;
}
