#include <bits/stdc++.h>
const int INF = 1001001001;
using namespace std;
int main() {
  int N;
  int a[10000];
  int c[8];
  int res = 0;
  cin >> N;
  for (int i = 0; i < N; i++) cin >> a[i];
  for (int i = 0; i < 8; i++) c[i] = 0;
  const int boarder[8] = {400, 800, 1200, 1600, 2000, 2400, 2800, INF};
  for (int i = 0; i < N; i++) {
    for (int j = 0; j < 8; j++) {
      if (a[i] < boarder[j]) {
        c[j]++;
        break;
      }
    }
  }
  for (int i = 0; i < 7; i++) {
    if (c[i]) res++;
  }
  if (c[7])
    cout << res + 1;
  else
    cout << res;
  cout << " " << min(8, res + c[7]) << endl;
}
