#include <bits/stdc++.h>
using namespace std;
long long const INF = 1LL << 60;
long long min_r[9] = {1, 400, 800, 1200, 1600, 2000, 2400, 2800, 3200};
long long max_r[9] = {399, 799, 1199, 1599, 1999, 2399, 2799, 3199, 4800};
int main() {
  long long N;
  cin >> N;
  long long a;
  map<int, int> m;
  for (int i = 0; i < N; i++) {
    cin >> a;
    for (int i = 0; i < 9; i++) {
      if (min_r[i] <= a && a <= max_r[i]) m[i]++;
    }
  }
  long long ans = 0;
  for (auto p : m) {
    ans++;
  }
  long long max_ans;
  long long min_ans;
  if (m[8]) {
    ans--;
    min_ans = ans;
    max_ans = ans + m[8];
  } else {
    min_ans = ans;
    max_ans = ans;
  }
  cout << min_ans << " " << max_ans << endl;
  return 0;
}
