#include <bits/stdc++.h>
using namespace std;
signed main() {
  long long N;
  cin >> N;
  long long count = 0;
  bitset<8> A;
  for (long long i = (long long)(0); i < (long long)(N); i++) {
    long long X;
    cin >> X;
    if (X < 3200)
      A.set(X / 400);
    else
      count++;
  }
  long long sum = A.count();
  cout << max(1LL, sum) << " " << min(8LL, sum + count);
}
