#include <bits/stdc++.h>
using namespace std;
int main() {
  int N = 0;
  cin >> N;
  int A[N];
  int c[8];
  for (int i = 0; i < (8); i++) c[i] = 0;
  for (int i = 0; i < (N); i++) {
    cin >> A[i];
  }
  int spe = 0;
  for (int i = 0; i < (N); i++) {
    if (A[i] < 400)
      c[0] = 1;
    else if (A[i] < 800)
      c[1] = 1;
    else if (A[i] < 1200)
      c[2] = 1;
    else if (A[i] < 1600)
      c[3] = 1;
    else if (A[i] < 2000)
      c[4] = 1;
    else if (A[i] < 2400)
      c[5] = 1;
    else if (A[i] < 2800)
      c[6] = 1;
    else if (A[i] < 3200)
      c[7] = 1;
    else
      spe++;
  }
  int count = 0;
  for (int i = 0; i < (8); i++) count += c[i];
  if (count == 0) {
    cout << 1 << " " << min(spe, 8) << endl;
    return 0;
  }
  cout << count << " " << min(count + spe, 8) << endl;
}
