#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n;
  cin >> n;
  vector<int> a(n, 0);
  vector<int> ct(8, 0);
  for (int i = 0; i < n; i++) cin >> a[i];
  int redct = 0;
  for (int i = 0; i < n; i++) {
    if (a[i] >= 3200) {
      redct++;
      continue;
    }
    ct[a[i] / 400]++;
  }
  int minct = 0;
  for (int i = 0; i < 8; i++) {
    if (ct[i] > 0) minct++;
  }
  cout << max(minct, 1) << " " << min(minct + redct, 8) << endl;
}
