#include <bits/stdc++.h>
using namespace std;
using vec = vector<long long>;
using mat = vector<vec>;
using Pii = pair<long long, long long>;
using PiP = pair<long long, Pii>;
using PPi = pair<Pii, long long>;
using bvec = vector<bool>;
using Pvec = vector<Pii>;
template <typename T>
void readv(vector<T> &a) {
  for (long long i = (0); i < (a.size()); i++) cin >> a[i];
}
void readv_m1(vector<int> &a) {
  for (long long i = (0); i < (a.size()); i++) {
    cin >> a[i];
    a[i]--;
  }
}
long long mod = 1000000007;
int main() {
  long long N;
  cin >> N;
  vec a(N, -1);
  long long amax = -1;
  long long amin = 1000000000000000000;
  vec appeared(8, 0);
  long long num_crown = 0;
  for (long long i = (0); i < (N); i++) {
    cin >> a[i];
    if (a[i] >= 3200)
      num_crown++;
    else
      appeared[a[i] / 400] = 1;
  }
  long long ans = 0;
  for (long long i = (0); i < (8); i++) {
    ans += appeared[i];
  }
  if (num_crown > 0) {
    cout << ans << " " << ans + num_crown << endl;
  } else
    cout << ans << " " << ans << endl;
  return 0;
}
