#include <bits/stdc++.h>
using namespace std;

int main() {
  int N;
  cin >> N;
  vector<int> A(9);
  for (int i = 0; i < N; i++) {
    int X;
    cin >> X;
    if (X < 3200) A.at(X / 400) = 1;
    else A.at(8) ++;
  }
  int K = 0;
  for (int i = 0; i < 8; i++) K += A.at(i);
  if (K == 0) cout << 1 << " " << A.at(8) << endl;
  else cout << K << " " << K + A.at(8) << endl;
}