#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, c1 = 0, c2 = 0, c3 = 0, c4 = 0, c5 = 0, c6 = 0, c7 = 0, c8 = 0, c = 0,
         sum, n, i;
  scanf("%d", &n);
  sum = 0;
  for (i = 0; i < n; i++) {
    scanf("%d", &a);
    if (a >= 1 && a <= 399)
      c1 = 1;
    else if (a >= 400 && a <= 799)
      c2 = 1;
    else if (a >= 800 && a <= 1199)
      c3 = 1;
    else if (a >= 1200 && a <= 1599)
      c4 = 1;
    else if (a >= 1600 && a <= 1999)
      c5 = 1;
    else if (a >= 2000 && a <= 2399)
      c6 = 1;
    else if (a >= 2400 && a <= 2799)
      c7 = 1;
    else if (a >= 2800 && a <= 3199)
      c8 = 1;
    else
      c++;
  }
  sum = c1 + c2 + c3 + c4 + c5 + c6 + c7 + c8;
  c = c + c1 + c2 + c3 + c4 + c5 + c6 + c7 + c8;
  if (c > 8) c = 8;
  printf("%d %d\n", sum, c);
  return 0;
}
