#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  int a;
  set<int> s;
  int ex = 0;
  for (int i = 0; i < N; i++) {
    cin >> a;
    int t = a / 400;
    if (t < 8)
      s.insert(t);
    else
      ex++;
  }
  int amin = 0;
  int amax = 0;
  for (int i = 0; i < 8; i++) {
    if (s.count(i) == 1) {
      amin++;
      amax++;
    }
  }
  if (amin == 0 && ex > 0)
    cout << 1 << " ";
  else
    cout << amin << " ";
  cout << min(amax + ex, 8) << endl;
  return 0;
}
