#include <bits/stdc++.h>
using namespace std;
int N;
int a[105];
int C[10];
int main(void) {
  cin >> N;
  for (int i = 1; i <= N; i++) {
    cin >> a[i];
  }
  for (int i = 1; i <= N; i++) {
    if (a[i] < 400) {
      C[0]++;
    }
    for (int j = 1; j <= 7; j++) {
      if (400 * j <= a[i] && a[i] < 400 * (j + 1)) {
        C[j]++;
      }
    }
    if (a[i] >= 3200) {
      C[8]++;
    }
  }
  int min_val = 0;
  for (int i = 0; i <= 7; i++) {
    if (C[i]) {
      min_val++;
    }
  }
  if (min_val == 0) {
    min_val++;
  }
  cout << min_val << " " << min_val + C[8] << endl;
  return 0;
}
