#include <bits/stdc++.h>
using namespace std;
int main() {
  int N, a[100];
  cin >> N;
  for (int i = 0; i < N; i++) cin >> a[i];
  int num[9] = {};
  int type = 0;
  for (int i = 0; i < N; i++) {
    for (int j = 0; j < 8; j++) {
      if (400 * j <= a[i] && a[i] < 400 * (j + 1)) num[j]++;
    }
    if (3200 <= a[i]) num[8]++;
  }
  for (int j = 0; j < 8; j++) {
    if (num[j] != 0) type++;
  }
  if (type == 0)
    cout << 1 << " " << min(8 - type, num[8]) << endl;
  else
    cout << type << " " << type + min(8 - type, num[8]) << endl;
  return 0;
}
