#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, a[110], b[10], sum, ma;
  while (scanf("%d", &n) != EOF) {
    sum = 0;
    ma = 0;
    memset(b, 0, sizeof b);
    for (int i = 0; i < n; i++) {
      scanf("%d", &a[i]);
      if (a[i] >= 1 && a[i] <= 399) {
        if (b[0] == 0) sum++;
        b[0] = 1;
      } else if (a[i] >= 400 && a[i] <= 799) {
        if (b[1] == 0) sum++;
        b[1] = 1;
      } else if (a[i] >= 800 && a[i] <= 1199) {
        if (b[2] == 0) sum++;
        b[2] = 1;
      } else if (a[i] >= 1200 && a[i] <= 1599) {
        if (b[3] == 0) sum++;
        b[3] = 1;
      } else if (a[i] >= 1600 && a[i] <= 1999) {
        if (b[4] == 0) sum++;
        b[4] = 1;
      } else if (a[i] >= 2000 && a[i] <= 2399) {
        if (b[5] == 0) sum++;
        b[5] = 1;
      } else if (a[i] >= 2400 && a[i] <= 2799) {
        if (b[6] == 0) sum++;
        b[6] = 1;
      } else if (a[i] >= 2800 && a[i] <= 3199) {
        if (b[7] == 0) sum++;
        b[7] = 1;
      } else {
        ma++;
      }
    }
    printf("%d %d\n", sum, sum + ma);
  }
  return 0;
}
