#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  int a = 0;
  int count = 0;
  cin >> n;
  vector<int> v(n);
  for (int i = 0; i < (int)(n); i++) {
    cin >> v[i];
    v[i] = (v[i] < 400)    ? 1
           : (v[i] < 800)  ? 2
           : (v[i] < 1200) ? 4
           : (v[i] < 1600) ? 8
           : (v[i] < 2000) ? 16
           : (v[i] < 2400) ? 32
           : (v[i] < 2800) ? 64
           : (v[i] < 3200) ? 128
                           : (count++ && 0);
  }
  for (int i = 0; i < (int)(n); i++) a = a | v[i];
  int c = 0;
  for (; a; a &= a - 1) ++c;
  int s = c;
  int p = count;
  while (s < 8) {
    if (count != 0) {
      s++;
      count--;
    } else
      break;
  }
  cout << (((p >= 1) && (c == 0)) ? 1 : c) << ' ' << s << endl;
  return 0;
}
