#include <bits/stdc++.h>
using namespace std;
int main() {
  long n;
  long a[1000] = {0};
  cin >> n;
  long c[9] = {0};
  long out = 0;
  long min = 0;
  for (int i = 0; i < (n); i++) {
    cin >> a[i];
    if (a[i] < 3200) {
      c[a[i] / 400] = 1;
    } else {
      c[8]++;
    }
  }
  for (int i = 0; i < (8); i++) {
    out += c[i];
  }
  min = out;
  if (c[8] > 0 && min == 0) {
    min = 1;
  }
  out += c[8];
  if (out > 8) out = 8;
  cout << min << " " << out << endl;
}
