#include <bits/stdc++.h>
using namespace std;
const int mod = 1000000007;
int main() {
  ios::sync_with_stdio(false);
  int n, a, b[9] = {}, z = 0;
  cin >> n;
  while (n--) {
    cin >> a;
    if (a < 3200)
      b[a / 400] = 1;
    else
      b[8]++;
  }
  for (int i = 0; i < 8; i++) z += b[i];
  cout << z << ' ' << z + b[8];
}
