#include <bits/stdc++.h>
const int mod = (int)1e09 + 7;
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); }
int Max(int a, int b) {
  if (a > b) {
    return a;
  }
  return b;
}
int Min(int a, int b) {
  if (a < b) {
    return a;
  }
  return b;
}
long long llmax(long long a, long long b) { return a > b ? a : b; }
long long llmin(long long a, long long b) { return a < b ? a : b; }
double dmax(double a, double b) { return a > b ? a : b; }
double dmin(double a, double b) { return a < b ? a : b; }
int cmp(const void *a, const void *b) {
  return *(long long *)a - *(long long *)b;
}
int cmp_r(const void *a, const void *b) {
  return *(long long *)b - *(long long *)a;
}
int char_cmp(const void *a, const void *b) {
  return strcmp((char *)a, (char *)b);
}
int char_cmp_r(const void *a, const void *b) {
  return strcmp((char *)b, (char *)a);
}
void swap(int *a, int *b) {
  int t = *a;
  *a = *b;
  *b = t;
}
int f[9] = {0};
int main() {
  int N, A;
  scanf("%d", &N);
  for (int i = 0; i < N; i++) {
    scanf("%d", &A);
    if (1 <= A && A <= 399) {
      f[0] = 1;
    }
    if (400 <= A && A <= 799) {
      f[1] = 1;
    }
    if (800 <= A && A <= 1199) {
      f[2] = 1;
    }
    if (1200 <= A && A <= 1599) {
      f[3] = 1;
    }
    if (1600 <= A && A <= 1999) {
      f[4] = 1;
    }
    if (2000 <= A && A <= 2399) {
      f[5] = 1;
    }
    if (2400 <= A && A <= 2799) {
      f[6] = 1;
    }
    if (2800 <= A && A <= 3199) {
      f[7] = 1;
    }
    if (3200 <= A && A <= 4800) {
      f[8]++;
    }
  }
  int sum = 0;
  int aki = 0;
  for (int i = 0; i < 8; i++) {
    if (f[i] == 1) {
      sum++;
    }
    if (f[i] == 0) {
      aki++;
    }
  }
  if (f[8] == 1) {
    sum++;
  }
  int s = 0, b = 0, p = 0;
  if (aki <= f[8] - 1) {
    p = aki;
  }
  if (aki > f[8] - 1) {
    p = f[8];
  }
  s = sum;
  b = sum + p;
  printf("%d %d\n", s, b);
  return 0;
}
