#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, scan, i;
  int cnt_max;
  scan = scanf("%d", &n);
  int a[n];
  for (i = 0; i < n && scan; i++) {
    scan = scanf("%d", &a[i]);
  }
  int k;
  int b[9];
  for (i = 0; i < 9; i++) {
    b[i] = 0;
  }
  for (i = 0; i < n; i++) {
    k = a[i] / 400;
    if (k > 8) k = k - 1;
    b[k]++;
  }
  int cnt = 0;
  for (i = 0; i < 8; i++) {
    if (b[i] > 0) cnt++;
  }
  if (cnt == 0) {
    cnt = 1;
    cnt_max = b[8];
  } else {
    cnt_max = b[8] + cnt;
  }
  printf("%d %d", cnt, cnt_max);
}
