#include <bits/stdc++.h>
using namespace std;
int n, s[100], a, co = 0, b = 0;
int main() {
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> a;
    if (a >= 3200)
      b++;
    else if (s[a / 400] == 0) {
      co++;
      s[a / 400]++;
    }
  }
  cout << co << " " << min(8, co + b) << endl;
}
