#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  map<int, int> cnt;
  for (int i = 0; i < N; i++) {
    int a;
    cin >> a;
    for (int i = 0; i <= 3200; i += 400) {
      if (i <= a && a < i + 400) {
        cnt[i]++;
      }
    }
  }
  if (cnt.find(3200) != cnt.end()) {
    cout << max((int)cnt.size() - 1, 1) << " " << cnt.size() - 1 + cnt[3200]
         << endl;
  } else {
    cout << cnt.size() << " " << cnt.size() << endl;
  }
}
