#include <bits/stdc++.h>
using namespace std;
int main() {
  long N;
  cin >> N;
  vector<long> a(N + 1);
  for (long i = 1; i <= N; i++) cin >> a.at(i);
  vector<long> color(9);
  long cnt = 0;
  for (long j = 1; j <= N; j++) {
    for (long i = 0; i <= 7; i++) {
      if (a.at(j) >= i * 400 && a.at(j) < (i + 1) * 400) {
        color.at(i) = 1;
      }
    }
    if (a.at(j) >= 3200) color.at(8)++;
  }
  for (long i = 0; i <= 7; i++) {
    if (color.at(i) == 1) cnt++;
  }
  long eight = 8;
  long x = min(cnt + color.at(8), eight);
  cout << cnt << ' ' << x << endl;
  return 0;
}
