#include <bits/stdc++.h>
using namespace std;
int main(void) {
  int n, i, a[100], cnt, x, iro[9], mx, mn;
  scanf("%d", &n);
  for (i = 0; i < 9; i++) iro[i] = 0;
  for (i = 0; i < n; i++) {
    scanf("%d", &a[i]);
    x = a[i] / 400;
    if (x > 8) x = 8;
    iro[x]++;
  }
  cnt = 0;
  for (i = 0; i < 8; i++) {
    if (iro[i] != 0) cnt++;
  }
  mn = cnt;
  mx = cnt + iro[8];
  printf("%d %d\n", mn, mx);
  return 0;
}
