#include <bits/stdc++.h>
using namespace std;
const long long INF = 1LL << 60;
int main() {
  long long N;
  cin >> N;
  vector<long long> a(N);
  long long target = 0;
  set<long long> st;
  for (int i = 0; i < N; ++i) {
    cin >> a[i];
    if (a[i] >= 3200) {
      target++;
      continue;
    }
    st.insert(a[i] / 400);
  }
  long long ans1 = st.size();
  long long ans2 = ans1;
  if (ans1 == 0) ans1++;
  if (target) {
    ans2 = min((long long)8, ans1 + target);
  }
  cout << ans1 << " " << ans2 << endl;
}
