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