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