#include <bits/stdc++.h>
using namespace std;
int in() {
  int temp;
  scanf("%d", &temp);
  return temp;
}
long long lin() {
  long long temp;
  scanf("%lld", &temp);
  return temp;
}
int main() {
  int N = in();
  set<int> st;
  int temp;
  unsigned long countCoder = 0;
  for (auto i = 0; i < N; i++) {
    temp = in();
    if (temp >= 3200) {
      temp = 3201;
      countCoder++;
      continue;
    }
    st.insert(temp / 400);
  }
  unsigned long larger =
      (8 > st.size() + countCoder) ? st.size() + countCoder : 8;
  cout << st.size() << " " << larger << endl;
  return 0;
}
