#include <bits/stdc++.h>
using namespace std;
const int INF = 100100100;
const int MOD = (int)1e9 + 7;
const double EPS = 1e-9;
int main() {
  int N;
  cin >> N;
  map<int, int> A{};
  int over = 0;
  for (int i = 0; i < (int)(N); i++) {
    int a;
    cin >> a;
    if (3200 <= a) {
      over++;
      continue;
    }
    a /= 400;
    A[a]++;
  }
  int ans = 0;
  for (int i = 0; i < (int)(9); i++) {
    if (0 < A[i]) ans++;
  }
  if (ans == 0) {
    ans++, over = max(0, over - 1);
  }
  cout << ans << " " << min(ans + over, 8) << endl;
}
