#include <bits/stdc++.h>
using namespace std;
int A[100];
const int maxrate = 8;
int color(int rate) { return min(maxrate, rate / 400); }
int main() {
  int N;
  cin >> N;
  for (int i = 0; i < N; ++i) {
    cin >> A[i];
  }
  int ratemap[maxrate + 1] = {0};
  for (int i = 0; i < N; ++i) {
    ratemap[color(A[i])]++;
  }
  int colornum = 0;
  for (int i = 0; i < maxrate; ++i) {
    if (ratemap[i] > 0) colornum++;
  }
  if (colornum == 0) {
    cout << 1 << " ";
  } else {
    cout << colornum << " ";
  }
  cout << min(maxrate, colornum + ratemap[maxrate]) << endl;
  return 0;
}
