#include <bits/stdc++.h>
using namespace std;
const int MAXN = 110;
int n;
int a[11];
int main() {
  scanf("%d", &n);
  int sum = 0;
  int tmp = 0;
  for (int i = 1; i <= n; ++i) {
    int x;
    scanf("%d", &x);
    sum += 1;
    if (x < 3200)
      a[x / 400]++;
    else
      tmp++;
  }
  int x = 0;
  for (int i = 0; i <= 7; ++i) {
    if (a[i] > 0) ++x;
  }
  printf("%d %d\n", x, min(8, x + tmp));
  return 0;
}
