#include <bits/stdc++.h>
using namespace std;
struct edge {
  int to, cost;
};
static const int INF = 1000000000;
static const int NIL = -1;
static const int MOD = 1000000007;
bool colors[8];
signed main() {
  int n;
  int tourist = 0;
  scanf("%d", &n);
  for (int i = 0; i < n; i++) {
    int tmp;
    scanf("%d", &tmp);
    if (tmp < 3200)
      colors[tmp / 400] = true;
    else
      tourist++;
  }
  int counter = 0;
  for (int i = 0; i < 8; i++)
    if (colors[i]) counter++;
  printf("%d ", counter);
  (counter + tourist <= 8) ? printf("%d\n", counter + tourist) : puts("8");
  return 0;
}
