#include <bits/stdc++.h>
using namespace std;
long long a[114];
signed main() {
  long long n, cnta = 0, cntb = 0, cntc = 0, cntd = 0, cnte = 0, cntf = 0,
               cntg = 0, cnth = 0, cnti = 0, ans = 0;
  cin >> n;
  for (long long i = 0; i < n; i++) cin >> a[i];
  for (long long i = 0; i < n; i++) {
    if (a[i] < 400)
      cnta++;
    else if (a[i] < 800)
      cntb++;
    else if (a[i] < 1200)
      cntc++;
    else if (a[i] < 1600)
      cntd++;
    else if (a[i] < 2000)
      cnte++;
    else if (a[i] < 2400)
      cntf++;
    else if (a[i] < 2800)
      cntg++;
    else if (a[i] < 3200)
      cnth++;
    else
      cnti++;
  }
  if (cnta) ans++;
  if (cntb) ans++;
  if (cntc) ans++;
  if (cntd) ans++;
  if (cnte) ans++;
  if (cntf) ans++;
  if (cntg) ans++;
  if (cnth) ans++;
  if (ans == 0)
    cout << 1 << " " << cnti << endl;
  else if (ans + cnti > 8)
    cout << ans << " " << 8 << endl;
  else
    cout << ans << " " << ans + cnti << endl;
}
