#include <bits/stdc++.h>
using namespace std;
int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  long long n;
  cin >> n;
  long long nor = 0, cham = 0;
  vector<long long> v(n);
  for (long long i = 0; i < (long long)n; i++) cin >> v.at(i);
  vector<long long> f(8);
  for (long long j = 0; j < (long long)n; j++) {
    for (long long i = 0; i < (long long)8; i++) {
      if (400 * i <= v[j] && v[j] < 400 * (i + 1)) {
        f[i]++;
      }
    }
  }
  long long sum = 0;
  for (long long i = 0; i < (long long)8; i++) {
    sum += f[i];
    if (f[i] > 0) {
      nor++;
    }
  }
  cham = n - sum;
  cout << nor << " " << nor + cham << endl;
}
