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