#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  vector<int> a(N);
  for (int i = 0; i < N; i++) {
    cin >> a[i];
  }
  vector<int> rate = {0, 0, 0, 0, 0, 0, 0, 0, 0};
  for (int i = 0; i < N; i++) {
    if (a[i] < 3200) {
      rate[a[i] / 400]++;
    } else {
      rate[8]++;
    }
  }
  int ans = 0;
  for (int i = 0; i < 8; i++) {
    if (rate[i] > 0) {
      ans++;
    }
  }
  cout << max(1, ans) << " " << min(8, ans + rate[8]) << endl;
}
