#include <bits/stdc++.h>
using namespace std;
const int cset = 8;
const int low[] = {1, 400, 800, 1200, 1600, 2000, 2400, 2800, 3200};
bool vis[100];
int main(int argc, char **argv) {
  int n;
  int a;
  int free = 0;
  scanf("%d", &n);
  for (int i = 0; i < n; i++) {
    scanf("%d", &a);
    for (int j = 0; j < cset; j++)
      if (a >= low[j] && a < low[j + 1]) vis[j] = true;
    if (a >= 3200) free++;
  }
  int used = 0;
  for (int i = 0; i < cset; i++) used += vis[i];
  printf("%d %d\n", used, min(used + free, 8));
  return 0;
}
