#include <bits/stdc++.h>
using namespace std;
int main() {
  long n;
  cin >> n;
  vector<long> a(9, 0);
  long rate;
  for (long i = 1; i <= n; i++) {
    cin >> rate;
    if (rate < 400) {
      a[0]++;
    } else if (rate < 800) {
      a[1]++;
    } else if (rate < 1200) {
      a[2]++;
    } else if (rate < 1600) {
      a[3]++;
    } else if (rate < 2000) {
      a[4]++;
    } else if (rate < 2400) {
      a[5]++;
    } else if (rate < 2800) {
      a[6]++;
    } else if (rate < 3200) {
      a[7]++;
    } else {
      a[8]++;
    }
  }
  long counter = 0;
  for (long i = 0; i < 8; i++) {
    if (a[i] != 0) {
      counter++;
    }
  }
  cout << counter << " " << counter + a[8] << endl;
}
