#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n, min = 1, max = 0;
  cin >> n;
  vector<long long> a(n);
  set<long long> s;
  for (long long i = (0); i < (n); ++i) {
    cin >> a[i];
  }
  sort(a.begin(), a.end());
  for (long long i = (1); i < (n); ++i) {
    if (a[i] < 3200) {
      if (a[i] / 400 != a[i - 1] / 400) {
        min++;
      }
    } else {
      max++;
    }
  }
  if (min + max < 8) {
    cout << min << " " << min + max << endl;
  } else {
    cout << min << " " << 8 << endl;
  }
}
