#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  vector<int> A(N);
  vector<int> B(9, 0);
  for (int i = 0; i < (int)(N); i++) {
    cin >> A[i];
    if (A[i] <= 399)
      B[0] = 1;
    else if (A[i] <= 799)
      B[1] = 1;
    else if (A[i] <= 1199)
      B[2] = 1;
    else if (A[i] <= 1599)
      B[3] = 1;
    else if (A[i] <= 1999)
      B[4] = 1;
    else if (A[i] <= 2399)
      B[5] = 1;
    else if (A[i] <= 2799)
      B[6] = 1;
    else if (A[i] <= 3199)
      B[7] = 1;
    else
      B[8]++;
  }
  int sum = 0;
  for (int i = 0; i < (int)(8); i++) {
    sum += B[i];
  }
  int ini_sum;
  if (B[8] >= sum)
    ini_sum = B[8];
  else
    ini_sum = sum;
  sum += B[8];
  if (sum > 8) sum = 8;
  cout << ini_sum << " " << sum << endl;
}
