#include <bits/stdc++.h>
using namespace std;
int main(void) {
  int n, min, max, i, j, a[100], flg, temp;
  cin >> n;
  for (i = 0; i < n; i++) cin >> a[i];
  for (i = 0; i < n - 1; i++) {
    for (j = i + 1; j < n; j++) {
      if (a[i] > a[j]) {
        temp = a[i];
        a[i] = a[j];
        a[j] = temp;
      }
    }
  }
  flg = 0;
  min = 0;
  max = 0;
  for (i = 0; i < n; i++) {
    if (a[i] >= 1 && a[i] <= 399 && flg != 0) {
      flg = 1;
      min++;
      max++;
    }
    if (a[i] >= 400 && a[i] <= 799 && flg != 2) {
      flg = 2;
      min++;
      max++;
    }
    if (a[i] >= 800 && a[i] <= 1199 && flg != 3) {
      flg = 3;
      min++;
      max++;
    }
    if (a[i] >= 1200 && a[i] <= 1599 && flg != 4) {
      flg = 4;
      min++;
      max++;
    }
    if (a[i] >= 1600 && a[i] <= 1999 && flg != 5) {
      flg = 5;
      min++;
      max++;
    }
    if (a[i] >= 2000 && a[i] <= 2399 && flg != 6) {
      flg = 6;
      min++;
      max++;
    }
    if (a[i] >= 2400 && a[i] <= 2799 && flg != 7) {
      flg = 7;
      min++;
      max++;
    }
    if (a[i] >= 2800 && a[i] <= 3199 && flg != 8) {
      flg = 8;
      min++;
      max++;
    }
    if (a[i] >= 3200) {
      if (max < 8) max++;
    }
  }
  if (min < 0) min = 0;
  cout << min << ' ' << max << endl;
  return 0;
}
