#include <bits/stdc++.h>
int a[1005];
int main() {
  int n;
  int max, min, i;
  while (~scanf("%d", &n)) {
    int gray = 0, brown = 0, green = 0, cyan = 0, blue = 0, yellow = 0,
        orange = 0, red = 0;
    int count = 0, count2 = 0;
    for (i = 0; i < n; i++) {
      scanf("%d", &a[i]);
      if (a[i] >= 1 && a[i] <= 399 && gray == 0) {
        count++;
        gray = 1;
      }
      if (a[i] >= 400 && a[i] <= 799 && brown == 0) {
        count++;
        brown = 1;
      }
      if (a[i] >= 800 && a[i] <= 1199 && green == 0) {
        count++;
        green = 1;
      }
      if (a[i] >= 1200 && a[i] <= 1599 && cyan == 0) {
        count++;
        cyan = 1;
      }
      if (a[i] >= 1600 && a[i] <= 1999 && blue == 0) {
        count++;
        blue = 1;
      }
      if (a[i] >= 2000 && a[i] <= 2399 && yellow == 0) {
        count++;
        yellow = 1;
      }
      if (a[i] >= 2400 && a[i] <= 2799 && orange == 0) {
        count++;
        orange = 1;
      }
      if (a[i] >= 2800 && a[i] <= 3199 && red == 0) {
        count++;
        red = 1;
      }
      if (a[i] >= 3200) count2++;
    }
    printf("%d %d\n", count, count + count2);
  }
  return 0;
}
