#include <bits/stdc++.h>
using namespace std;
int main(void) {
  int n;
  cin >> n;
  bool color[8] = {false};
  int rate;
  int under_cnt = 0;
  int over_cnt = 0;
  int i;
  for (i = 1; i <= n; i++) {
    cin >> rate;
    if (rate >= 3200) {
      over_cnt++;
    } else {
      if (color[rate / 400] == false) {
        under_cnt++;
        color[rate / 400] = true;
      }
    }
  }
  cout << max(1, under_cnt) << " " << min(under_cnt + over_cnt, 8) << endl;
  return 0;
}
