#include <bits/stdc++.h>
using namespace std;
int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  int N;
  cin >> N;
  int a[N];
  int numFree = 0;
  set<int> ranks;
  for (int i = 0; i < N; i++) {
    cin >> a[i];
    if (a[i] < 3200) {
      ranks.insert(a[i] / 400);
    } else {
      numFree++;
    }
  }
  int min = ranks.size();
  if (min == 0) {
    min = 1;
  }
  int max = ranks.size() + numFree;
  if (max > 8) max = 8;
  cout << min << " " << max << endl;
  return 0;
}
