#include <bits/stdc++.h>
using namespace std;
int main(void) {
  int n;
  cin >> n;
  int min = 1;
  int max = 1;
  vector<int> v(n);
  for (int i = 0; i < n; i++) {
    cin >> v[i];
  }
  sort(v.begin(), v.end());
  int before = 1;
  for (int i = 0; i < n; i++) {
    if (i != 0) {
      if (v[i] >= 3200) {
        max++;
      } else {
        if (abs(before - v[i]) >= 400) {
          min++;
          max++;
        }
      }
    }
    before = v[i];
  }
  cout << min << " " << max << endl;
  return 0;
}
