#include <bits/stdc++.h>
using namespace std;
constexpr long long inf = 1e9 + 7;
long long cs[9] = {0};
int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  long long N;
  cin >> N;
  for (long long n = 0; n < N; n++) {
    long long a;
    cin >> a;
    if (a < 3200)
      cs[a / 400]++;
    else
      cs[8]++;
  }
  long long cnt = 0;
  for (long long i = 0; i < 8; i++)
    if (cs[i] > 0) cnt++;
  long long mn;
  if (cnt == 0)
    mn = 1;
  else
    mn = cnt;
  long long mx = cnt;
  if (8 - cnt < cs[8])
    mx = 8;
  else
    mx = cnt + cs[8];
  cout << mn << " " << mx << endl;
  return 0;
}
