#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  int L = 0;
  int H = 0;
  cin >> N;
  vector<int> A(8);
  for (int X = 0; X < N; X++) {
    int S;
    cin >> S;
    if (S < 3200 && A[S / 400] == 0) {
      A[S / 400] = 1;
      H++;
    }
    if (S > 3199) L++;
  }
  cout << max(1, H) << " " << min(8, H + L) << endl;
}
