#include <bits/stdc++.h>
using namespace std;
long long n, a;
set<long long> st;
signed main() {
  cin >> n;
  long long ans = 0;
  for (long long i = 0; i < n; i++) {
    cin >> a;
    if (a >= 3200)
      ans++;
    else
      st.insert(a / 400);
  }
  cout << max((long long)st.size(), ans) << " " << st.size() + ans << endl;
  return 0;
}
