#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  vector<long long> A(N);
  for (int(i) = 0; (i) < (int)(N); ++(i)) {
    cin >> A[i];
  };
  vector<int> col(9, 0);
  for (int(i) = 0; (i) < (int)(N); ++(i)) {
    if (3200 <= A[i]) {
      col[8]++;
    } else {
      col[A[i] / 400]++;
    }
  }
  int ans = 0;
  for (int(i) = 0; (i) < (int)(8); ++(i)) {
    if (0 < col[i]) {
      ans++;
    }
  }
  if (ans == 0) {
    cout << 1 << " " << col[8] << endl;
  } else {
    int ansMax = min(8, ans + col[8]);
    cout << ans << " " << ansMax << endl;
  }
  return 0;
}
