#include <bits/stdc++.h>
using namespace std;
int main() {
  int N, A[8] = {}, a, c = 0, mini = 0, maxi = 0;
  cin >> N;
  for (int i = 0; i < N; ++i) {
    cin >> a;
    if (a < 3200)
      A[a / 400] = 1;
    else
      c++;
  }
  for (int i = 0; i < 8; i++) {
    if (A[i] == 1) {
      mini++;
      maxi++;
    }
  }
  if (!mini && c > 0) mini++;
  maxi = min(maxi + c, 8);
  cout << mini << endl << maxi;
}
