#include <bits/stdc++.h>
using namespace std;
const int mod = 1e+9 + 7;
int main() {
  int N;
  cin >> N;
  vector<int> a(N);
  bitset<8> b;
  int cnt = 0;
  for (int i = 0; i < N; i++) {
    cin >> a[i];
    if (a[i] >= 3200) {
      cnt++;
      continue;
    }
    b.set(a[i] / 400);
  }
  int bb = b.count();
  cout << max(bb, cnt) << " ";
  if (bb + cnt >= 8)
    cout << 8 << endl;
  else
    cout << bb + cnt << endl;
}
