#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  vector<int> a(n);
  vector<int> rate(4800 / 400);
  int i;
  for (i = 0; i < a.size(); i++) {
    cin >> a[i];
    rate[a[i] / 400]++;
  }
  int result_min = 0;
  for (i = 0; i < 3200 / 400; i++) {
    if (rate[i] != 0) {
      result_min++;
    }
  }
  int over3200 = 0;
  for (i = 3200 / 400; i < rate.size(); i++) {
    if (rate[i]) {
      over3200 += rate[i];
    }
  }
  int result_max = result_min + over3200;
  result_min = max(result_min, 1);
  cout << result_min << ' ' << result_max << endl;
  return 0;
}
