#include <bits/stdc++.h>
using namespace std;
int main() {
  long long N;
  cin >> N;
  long long i, a;
  long long color[8], t1 = 0, t2 = 0;
  for (i = 0; i < 8; i++) {
    color[i] = 0;
  }
  for (i = 0; i < N; i++) {
    cin >> a;
    if (a < 3200)
      color[a / 400] = 1;
    else
      t2++;
  }
  for (i = 0; i < 8; i++) {
    t1 += color[i];
  }
  cout << t1 << " " << min((long long)8, t1 + t2) << endl;
  return 0;
}
