#include <bits/stdc++.h>
using namespace std;
const long long inf = 1e18;
int main() {
  long long n;
  cin >> n;
  long long a[n];
  for (long long int i = 0; i < n; i++) cin >> a[i];
  set<long long> st;
  long long ans = 0;
  for (long long int i = 0; i < n; i++) {
    if (a[i] / 400 < 8)
      st.insert(a[i] / 400);
    else
      ans++;
  }
  cout << st.size() << " ";
  cout << (st.size() + ans) << endl;
}
