#include <bits/stdc++.h>
using namespace std;
const double eps = 1e-10;
const int MOD = 1000000007;
const int INF = 1000000000;
const long long int LINF = 1 << 22;
template <typename T>
void printv(vector<T> const& s) {
  for (int i = (0); i < (((int)(s).size())); i++) {
    cout << s[i] << " ";
  }
  cout << endl;
}
int main() {
  cin.tie(0);
  cout << setprecision(10);
  int n;
  cin >> n;
  vector<int> a(n);
  for (int i = (0); i < (n); i++) cin >> a[i];
  map<int, int> m;
  int fr = 0;
  for (int i = (0); i < (n); i++) {
    if (a[i] / 400 > 7)
      fr++;
    else
      m[a[i] / 400]++;
  }
  cout << m.size() << " " << m.size() + fr << endl;
}
