#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  int rates[8] = {399, 799, 1199, 1599, 1999, 2399, 2799, 3199};
  bool colors[8] = {false, false, false, false, false, false, false, false};
  cin >> N;
  int rate;
  int tnum = 0;
  int cnum = 0;
  for (int i = 0; i < N; ++i) {
    cin >> rate;
    for (int j = 0; j < 9; ++j) {
      if (j == 8) {
        tnum++;
        break;
      } else if (rate <= rates[j]) {
        if (colors[j] == false) {
          colors[j] = true;
          cnum++;
        }
        break;
      }
    }
  }
  cout << max(cnum, tnum > 0 ? 1 : 0) << " " << min(cnum + tnum, 8);
}
