#include <bits/stdc++.h>
using namespace std;
const long long INF = (1ll << 60);
const long long MOD = (long long)1e9 + 7;
signed main() {
  long long n;
  long long a[100];
  cin >> n;
  for (long long i = 0; i < n; i++) cin >> a[i];
  long long r[9] = {};
  for (long long i = 0; i < n; i++) {
    r[a[i] / 400]++;
  }
  long long cnt = 0;
  for (long long i = 0; i < 8; i++) {
    if (i == 8)
      cnt += r[i];
    else if (r[i] > 0)
      cnt++;
  }
  long long mx = 0;
  long long mn = 0;
  if (cnt == 0) {
    mn = 1;
    mx = min(r[8], 9LL);
  } else {
    mn = cnt;
    mx = min(cnt + r[8], 9LL);
  }
  cout << mn << " " << mx << endl;
}
