#include <bits/stdc++.h>
using namespace std;
int main(void) {
  vector<int> border = {3200, 2800, 2400, 2000, 1600, 1200, 800, 400};
  int N;
  cin >> N;
  set<int> s;
  int free_color = 0;
  for (int i = 0; i < N; i++) {
    int a;
    cin >> a;
    for (int j = 0; j < border.size(); j++) {
      if (border[j] <= a) {
        if (j != 0) {
          s.insert(j);
        } else {
          free_color++;
        }
        break;
      }
    }
  }
  if (s.size() == 0) {
    cout << 1 << " " << free_color << endl;
  } else {
    cout << s.size() << " " << min(8, free_color + (int)s.size()) << endl;
  }
  return 0;
}
