#include <bits/stdc++.h>
using namespace std;
uint64_t MOD = 1000000007;
int main() {
  int N;
  cin >> N;
  vector<int> A(N);
  for (int n = 0; n < N; n++) cin >> A.at(n);
  int color = 8, top = 0;
  vector<int> boader{0, 400, 800, 1200, 1600, 2000, 2400, 2800, 3200};
  set<int> setC;
  for (auto a : A) {
    if (a >= 3200) top++;
    for (int i = 0; i < boader.size() - 1; i++) {
      if (a >= boader.at(i) && a < boader.at(i + 1)) {
        setC.insert(i);
        break;
      }
    }
  }
  int minAns = setC.size();
  int maxAns = min((int)setC.size() + top, color);
  cout << minAns << " " << maxAns << endl;
}
