#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  while (cin >> n) {
    int b, c, d, e, f, g, h, i, j;
    b = c = d = e = f = g = h = i = j = 0;
    int a;
    while (n--) {
      cin >> a;
      if (a >= 1 && a <= 399 && !b)
        b = 1;
      else if (a >= 400 && a <= 799 && !c)
        c = 1;
      else if (a >= 800 && a <= 1199 && !d)
        d = 1;
      else if (a >= 1200 && a <= 1599 && !e)
        e = 1;
      else if (a >= 1600 && a <= 1999 && !f)
        f = 1;
      else if (a >= 2000 && a <= 2399 && !g)
        g = 1;
      else if (a >= 2400 && a <= 2799 && !h)
        h = 1;
      else if (a >= 2800 && a <= 3199 && !i)
        i = 1;
      else if (a >= 3200)
        j++;
    }
    int k = b + c + d + e + f + g + h + i;
    if (!j)
      printf("%d %d\n", k, k);
    else
      printf("%d %d\n", k, k + j);
  }
  return 0;
}
