#include <bits/stdc++.h>
int main() {
  int n, a, i, r, t[9] = {0};
  scanf("%d", &n);
  for (i = 0; i < n; i++) {
    scanf("%d", &a);
    r = a / 400;
    if (r == 0)
      t[0] = 1;
    else if (r == 1)
      t[1] = 1;
    else if (r == 2)
      t[2] = 1;
    else if (r == 3)
      t[3] = 1;
    else if (r == 4)
      t[4] = 1;
    else if (r == 5)
      t[5] = 1;
    else if (r == 6)
      t[6] = 1;
    else if (r == 7)
      t[7] = 1;
    else
      t[8]++;
  }
  int sum1 = 0, sum2 = 0;
  for (i = 0; i < 8; i++) sum1 += t[i];
  for (i = 0; i < 9; i++) sum2 += t[i];
  printf("%d %d\n", sum1, sum2);
  return 0;
}
