#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  vector<int> a(N);
  for (int i = 0; i < N; i++) {
    int x;
    cin >> x;
    a.at(i) = x / 400;
  }
  set<int> S;
  int count = 0, count_8 = 0;
  for (int i = 0; i < N; i++) {
    if (a.at(i) == 8) {
      count_8++;
    } else {
      if (S.count(a.at(i))) {
        continue;
      } else {
        S.insert(a.at(i));
        count++;
      }
    }
  }
  cout << max(count, 1) << " " << min(count + count_8, 8) << endl;
}
