#include <bits/stdc++.h>
using namespace std;
using ll = long long;
bool col[8];
int zyougen[8] = {400, 800, 1200, 1600, 2000, 2400, 2800, 3200};
int rnd;
void categrize_color(int rate) {
  for (int i = 0; i < 8; ++i) {
    if (rate < zyougen[i]) {
      col[i] = true;
      return;
    }
  }
  ++rnd;
  return;
}
int main() {
  int N;
  scanf("%d", &N);
  for (int i = 0; i < N; ++i) {
    int a;
    scanf("%d", &a);
    categrize_color(a);
  }
  int mn_res = 0;
  for (int i = 0; i < 8; ++i)
    if (col[i]) ++mn_res;
  int max_res = min(8, mn_res + rnd);
  if (rnd != 0) mn_res = max(mn_res, 1);
  printf("%d %d\n", mn_res, max_res);
  return 0;
}
