#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  int rate[9] = {0};
  vector<int> a;
  cin >> n;
  int tmp;
  int nonrate = 0;
  for (int i = 0; i < n; i++) {
    cin >> tmp;
    a.push_back(tmp);
    rate[tmp / 400] = 1;
    if (3200 <= tmp) nonrate++;
  }
  int min_value = 0;
  int max_value = 0;
  for (int i = 0; i < 8; i++) {
    if (rate[i]) min_value++;
  }
  max_value = min(min_value + nonrate, 8);
  cout << min_value << " " << max_value << endl;
  return 0;
}
