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