#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  vector<int> a(n);
  for (int i = 0; i < n; i++) {
    cin >> a[i];
    a[i] /= 400;
  }
  sort(a.begin(), a.end());
  int count = 1, vari = 0;
  int now = a[0];
  for (int i = 1; i < n; i++) {
    if (a[i] >= 8) {
      vari = n - i;
      break;
    }
    if (now == a[i]) continue;
    count++;
    now = a[i];
  }
  int max = count + vari;
  if (max > 8) max = 8;
  cout << count << " " << max << endl;
}
