#include <bits/stdc++.h>
int in(void) {
  int i;
  scanf("%d", &i);
  return i;
}
long long llin(void) {
  long long i;
  scanf("%lld", &i);
  return i;
}
double din(void) {
  double i;
  scanf("%lf", &i);
  return i;
}
void chin(char s[]) { scanf("%s", s); }
void print(int a) { printf("%d\n", a); }
void llprint(long long a) { printf("%lld\n", a); }
void dprint(double a) { printf("%.10f\n", a); }
void print2(int a, int b) { printf("%d %d\n", a, b); }
long long max(long long a, long long b) { return a > b ? a : b; }
long long min(long long a, long long b) { return a < b ? a : b; }
double dmax(double a, double b) { return a > b ? a : b; }
int cmp(const void *a, const void *b) { return *(int *)a - *(int *)b; }
int main(void) {
  int n = in(), a[100], i, s, d, f, g, h, j, k, l, m, min;
  s = d = f = g = h = j = k = l = m = 0;
  for (i = 0; i < n; i++) {
    a[i] = in();
    if (a[i] < 400)
      s = 1;
    else if (a[i] < 800)
      d = 1;
    else if (a[i] < 1200)
      f = 1;
    else if (a[i] < 1600)
      g = 1;
    else if (a[i] < 2000)
      h = 1;
    else if (a[i] < 2400)
      j = 1;
    else if (a[i] < 2800)
      k = 1;
    else if (a[i] < 3200)
      l = 1;
    else
      m++;
  }
  min = s + d + f + g + h + j + k + l;
  print2(min, (min + m) > 8 ? 8 : min + m);
  return 0;
}
