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