#include <bits/stdc++.h>
using ll = long long;
using ld = long double;
using namespace std;
const ll mod = 1e9 + 7;
ll a[110];
int main() {
  ll n, a1 = 0, a2 = 0, a3 = 0, a4 = 0, a5 = 0, a6 = 0, a7 = 0, a8 = 0;
  ll ans = 0;
  cin >> n;
  for (ll i = ll(0); i < ll(n); i++) cin >> a[i];
  for (ll i = ll(0); i < ll(n); i++) {
    if (a[i] >= 3200)
      a1++;
    else if (a[i] >= 2400)
      a2++;
    else if (a[i] >= 2000)
      a3++;
    else if (a[i] >= 1600)
      a4++;
    else if (a[i] >= 1200)
      a5++;
    else if (a[i] >= 800)
      a6++;
    else if (a[i] >= 400)
      a7++;
    else
      a8++;
  }
  if (a2 > 0) ans++;
  if (a3 > 0) ans++;
  if (a4 > 0) ans++;
  if (a5 > 0) ans++;
  if (a6 > 0) ans++;
  if (a7 > 0) ans++;
  if (a8 > 0) ans++;
  if (ans == 0)
    cout << "1"
         << " ";
  else
    cout << ans << " ";
  cout << ans + a1;
}
