#include <bits/stdc++.h>
using namespace std;
const long long int mod = 1000000007;
const long long int INF = 1e18;
long long int N, M, A[200200] = {}, memo[10] = {}, res = 0, cou = 0, num;
string S;
int main() {
  cout << fixed << setprecision(18);
  cin >> N;
  for (long long int i = 0; i < N; i++) {
    cin >> A[i];
    memo[min(A[i] / 400, 8LL)]++;
  }
  for (long long int i = 0; i <= 7; i++) {
    if (memo[i] > 0) {
      res++;
    }
  }
  cout << res << " " << res + memo[8] << endl;
}
