#include <bits/stdc++.h>
int main(void) {
  int n;
  scanf("%i", &n);
  int colors[10] = {0};
  int a[n], count = 0;
  for (int i = 0; i < n; i++) {
    scanf("%i", &a[i]);
    if (a[i] <= 399)
      colors[0] = 1;
    else if (a[i] <= 799)
      colors[1] = 1;
    else if (a[i] <= 1199)
      colors[2] = 1;
    else if (a[i] <= 1599)
      colors[3] = 1;
    else if (a[i] <= 1999)
      colors[4] = 1;
    else if (a[i] <= 2399)
      colors[5] = 1;
    else if (a[i] <= 2799)
      colors[6] = 1;
    else if (a[i] <= 3199)
      colors[7] = 1;
    else
      count++;
  }
  int base = 0;
  for (int i = 0; i < 8; i++) {
    base += colors[i];
  }
  printf("%i", base);
  for (int i = 0; i < 8; i++) {
    if (count > 0 && !colors[i]) {
      base++;
      count--;
    }
  }
  printf(" %i\n", base);
  return 0;
}
