#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  vector<int> score(n);
  vector<int> checked(9, 0);
  for (int i = 0; i < n; i++) cin >> score[i];
  for (int i = 0; i < n; i++) {
    for (int j = 0; j < 9; j++) {
      if (i != 8 && score[i] >= 400 * j && score[i] < 400 * (j + 1))
        checked[j] += 1;
      if (i == 8 && score[i] >= 400 * j) checked[j] += 1;
    }
  }
  int ans_min = 0, ans_max = 0;
  for (int i = 0; i < 9; i++) {
    if (i != 8 && checked[i] != 0) ans_min += 1;
    if (i == 8) ans_max = ans_min + checked[i];
  }
  cout << ans_min << " " << ans_max << endl;
}
