#include <bits/stdc++.h>
using namespace std;
const long long INF = 1e+9;
const double EPS = 1e-9;
const long long MOD = 1000000007;
const long long dx[] = {1, 0, -1, 0}, dy[] = {0, -1, 0, 1};
signed main() {
  long long n, cnt[14] = {};
  cin >> n;
  for (long long i = 0; i < n; i++) {
    long long a;
    cin >> a;
    cnt[a / 400]++;
  }
  long long mi = 0;
  for (long long i = 0; i < 7; i++) {
    if (cnt[i]) mi++;
  }
  cout << mi << " ";
  for (long long i = 8; i <= 12; i++) mi += cnt[i];
  cout << mi << endl;
  return 0;
}
