#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, r, rate[9] = {0};
  scanf("%d", &n);
  for (int _ = 0; _ < (n); _++) {
    scanf("%d", &r);
    rate[r / 400]++;
  }
  int maxs = 0, mins = 0;
  for (int i = 0; i < (8); i++) {
    mins += rate[i] > 0;
    maxs = mins + rate[8];
  }
  printf("%d %d\n", mins, maxs);
  return 0;
}
