#include <bits/stdc++.h>
using namespace std;
long long lx[4] = {0, 0, 1, -1};
long long ly[4] = {1, -1, 0, 0};
long long dx[8] = {0, 0, 1, -1, 1, -1, 1, -1};
long long dy[8] = {1, -1, 0, 0, 1, 1, -1, -1};
void fast() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout << setprecision(12) << fixed;
}
void solve() {
  long long n;
  cin >> n;
  long long f[9];
  memset(f, (long long)0, sizeof(f));
  for (long long i = 0; i < n; i++) {
    long long z;
    cin >> z;
    for (long long j = 400, k = 0; j <= 3200; j += 400) {
      if (z < j) {
        f[k] = 1;
        break;
      } else
        k++;
    }
    if (z >= 3200) f[8]++;
  }
  long long ans = 0;
  for (long long i = 0; i < 9; i++) ans += f[i];
  cout << ans - f[8] << " " << ans;
}
int main() {
  fast();
  long long t = 1;
  while (t--) {
    solve();
  }
}
