#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  vector<int> A(N);
  vector<int> Color = {400, 800, 1200, 1600, 2000, 2400, 2800, 3200, 4800};
  vector<int> kinds(9, 0);
  for (int i = 0; i < N; i++) {
    cin >> A.at(i);
    for (int j = 0; j < 9; j++) {
      if (A.at(i) < Color.at(j)) {
        kinds.at(j)++;
        break;
      }
    }
  }
  int ans = 0;
  for (int i = 0; i < 8; i++) {
    if (kinds.at(i) != 0) ans++;
  }
  int free = kinds.at(8);
  cout << (ans == 0 ? 1 : ans) << ' ' << ans + free << endl;
}
