#include <bits/stdc++.h>
using namespace std;
int main() {
  int n = 0;
  bool ans[8] = {};
  int res = 0;
  int sp = 0;
  int st[8] = {399, 799, 1199, 1599, 1999, 2399, 2799, 3199};
  cin >> n;
  for (int i = 0; i < n; i++) {
    int temp = 0;
    cin >> temp;
    if (temp >= 3200) {
      sp++;
      continue;
    }
    for (int i = 0; i < 8; i++) {
      if (temp <= st[i]) {
        if (ans[i] == false) {
          res++;
          ans[i] = true;
        }
        break;
      }
    }
  }
  cout << max(res, 1) << " " << min(res + sp, 8);
  ;
  return 0;
}
