#include <bits/stdc++.h>
int main() {
  int N, b, c, d, e, f, g, h, i, l, m, n, max, min, sum;
  int a[80];
  b = 0;
  c = 0;
  d = 0;
  e = 0;
  f = 0;
  g = 0;
  h = 0;
  l = 0;
  m = 0;
  max = 0;
  min = 1;
  n = 0;
  scanf("%d\n", &N);
  for (i = 0; i < N; i++) {
    scanf("%d", &a[i]);
    if (a[i] >= 1 && a[i] <= 399) {
      b = 1;
    } else if (a[i] >= 400 && a[i] <= 799) {
      c = 1;
    } else if (a[i] >= 800 && a[i] <= 1199) {
      d = 1;
    } else if (a[i] >= 1200 && a[i] <= 1599) {
      e = 1;
    } else if (a[i] >= 1600 && a[i] <= 1999) {
      f = 1;
    } else if (a[i] >= 2000 && a[i] <= 2399) {
      g = 1;
    } else if (a[i] >= 2400 && a[i] <= 2799) {
      h = 1;
    } else if (a[i] >= 2800 && a[i] <= 3199) {
      l = 1;
    } else {
      n++;
    }
  }
  sum = b + c + d + e + f + g + h + l;
  max = sum + n;
  if (sum == 0 && n > 0)
    min = 1;
  else
    min = sum;
  printf("%d %d\n", min, max);
  return 0;
}
