#include <bits/stdc++.h>
using namespace std;
int main(void) {
  int b[10];
  int c, d;
  int k;
  int n, m;
  int x;
  for (int i = 0; i < 10; i++) b[i] = 0;
  scanf("%d", &n);
  for (int i = 0; i < n; i++) {
    scanf("%d", &x);
    x = x / 400;
    if (x > 7)
      b[8]++;
    else
      b[x] = 1;
  }
  c = 0;
  for (int i = 0; i < 8; i++) c = c + b[i];
  if (c == 0 && b[8] > 0) {
    c = 1;
    b[8]--;
  }
  if (c + b[8] > 8)
    printf("%d 8\n", c);
  else
    printf("%d %d\n", c, c + b[8]);
  return 0;
}
