#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int N, K, L, sum = 0;
  vector<int> P(9, 0);
  cin >> N;
  vector<int> Q(N, 0);
  for (long long int i = 0; i < N; i++) {
    cin >> Q[i];
    if (Q[i] > 3599) Q[i] = 3599;
  }
  for (long long int i = 0; i < N; i++) P[Q[i] / 400]++;
  for (long long int i = 0; i < 8; i++)
    if (P[i] != 0) sum++;
  if (sum == 0) {
    sum = P[8];
    P[8] = 0;
  }
  cout << sum << " " << sum + P[8] << endl;
}
