#include <bits/stdc++.h>
using namespace std;
int main() {
  int N, A[100], R[9] = {0}, k = 0, ans = 0;
  cin >> N;
  for (int n = 0; n < N; n++) {
    cin >> A[n];
    if (A[n] <= 399)
      R[0]++;
    else if (A[n] <= 799)
      R[1]++;
    else if (A[n] <= 1199)
      R[2]++;
    else if (A[n] <= 1599)
      R[3]++;
    else if (A[n] <= 1999)
      R[4]++;
    else if (A[n] <= 2399)
      R[5]++;
    else if (A[n] <= 2799)
      R[6]++;
    else if (A[n] <= 3199)
      R[7]++;
    else
      R[8]++;
  }
  for (int n = 0; n < 8; n++) {
    if (R[n] == 0)
      k++;
    else
      ans++;
  }
  int ansm = ans;
  if (k < 8) ansm += min(k, R[8]);
  cout << ans << " " << ansm << endl;
  return 0;
}
