#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  if (n == 1) {
    cout << "1 1" << endl;
  } else {
    set<int> st;
    int tmp, over_red = 0;
    for (int i = 0; i < n; i++) {
      cin >> tmp;
      if (tmp >= 3200) {
        over_red++;
      } else {
        st.insert(tmp / 400);
      }
    }
    int under_red = st.size();
    cout << max(1, under_red) << " " << min(8, under_red + over_red) << endl;
  }
}
