#include <bits/stdc++.h>
using namespace std;
using ll = long long int;
int main() {
  ll N;
  array<ll, 100> A;
  cin >> N;
  for (ll i = 0; i < N; ++i) {
    cin >> A[i];
  }
  ll map[9] = {0};
  for (ll i = 0; i < N; ++i) {
    if (A[i] < 400) {
      map[0] += 1;
    } else if (A[i] < 800) {
      map[1] += 1;
    } else if (A[i] < 1200) {
      map[2] += 1;
    } else if (A[i] < 1600) {
      map[3] += 1;
    } else if (A[i] < 2000) {
      map[4] += 1;
    } else if (A[i] < 2400) {
      map[5] += 1;
    } else if (A[i] < 2800) {
      map[6] += 1;
    } else if (A[i] < 3200) {
      map[7] += 1;
    } else {
      map[8] += 1;
    }
  }
  ll cnt = 0;
  for (ll j = 0; j < 8; ++j) {
    if (map[j] > 0) {
      cnt += 1;
    }
  }
  ll maxcnt = min(cnt + map[8], 8LL);
  ll mincnt = max(cnt, (map[8] > 0 ? 1LL : 0LL));
  cout << mincnt << " " << maxcnt << endl;
  return 0;
}
