#include <bits/stdc++.h>
using namespace std;
int n, a, m = 0, M = 0, exceed = 0;
bool exist[8] = {};
int main() {
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> a;
    if (a < 3200) {
      exist[a / 400] = true;
    } else {
      exceed++;
    }
  }
  for (int i = 0; i < 8; i++) {
    if (exist[i]) {
      m++;
    }
  }
  M = min(8, m + exceed);
  cout << max(m, 1) << " " << M << endl;
  return 0;
}
