#include <bits/stdc++.h>
using namespace std;
int main() {
  vector<int> colors{0, 400, 800, 1200, 1600, 2000, 2400, 2800, 3200, 4800};
  vector<bool> counters(colors.size() - 1, false);
  long long N;
  cin >> N;
  int a;
  int max_ans = 0, min_ans = 0;
  for (int i = 0; i < N; ++i) {
    cin >> a;
    for (int j = 0; j < colors.size() - 2; ++j) {
      if (colors[j] <= a && colors[j + 1] > a) {
        counters[j] = true;
      }
    }
    if (a >= colors[colors.size() - 2]) {
      ++max_ans;
    }
  }
  for (auto element : counters) {
    if (element) ++min_ans;
  }
  max_ans += min_ans;
  cout << min_ans << " " << max_ans << endl;
}
