#include <bits/stdc++.h>
using namespace std;
int f[] = {400, 800, 1200, 1600, 2000, 2400, 2800, 3200, 100000};
int a[100], r[10];
int main() {
  int n;
  scanf("%d", &n);
  for (int i = 0; i < n; i++) scanf("%d", &a[i]);
  for (int i = 0; i < n; i++) {
    for (int j = 0; j < 9; j++) {
      if (a[i] < f[j]) {
        r[j]++;
        break;
      }
    }
  }
  int ans = 0;
  for (int i = 0; i < 8; i++) ans += (r[i] >= 1);
  printf("%d %d\n", max(1, ans), min(9, ans + r[8]));
  return 0;
}
