#include <bits/stdc++.h>
long max(long a, long b) {
  if (a > b)
    return a;
  else
    return b;
}
long min(long a, long b) {
  if (a < b)
    return a;
  else
    return b;
}
int sort(const void *a, const void *b) { return *(int *)a - *(int *)b; }
int main() {
  int color[9] = {0};
  int n;
  int min = 0;
  int max = 0;
  scanf("%d", &n);
  int a;
  for (int i = 0; i < n; ++i) {
    scanf("%d", &a);
    if (a <= 399)
      color[0] = 1;
    else if (a <= 799)
      color[1] = 1;
    else if (a <= 1199)
      color[2] = 1;
    else if (a <= 1599)
      color[3] = 1;
    else if (a <= 1999)
      color[4] = 1;
    else if (a <= 2399)
      color[5] = 1;
    else if (a <= 2799)
      color[6] = 1;
    else if (a <= 3199)
      color[7] = 1;
    else
      color[8] += 1;
  }
  for (int i = 0; i < 8; ++i) {
    min += color[i];
  }
  max = min + color[8];
  printf("%d %d", min, max);
  return 0;
}
