#include <bits/stdc++.h>
using namespace std;
const int INF = 1000000000;
const int MOD = 1000000007;
const double eps = 1e-9;
int col[9] = {400, 800, 1200, 1600, 2000, 2400, 2800, 3200, 4800};
int main(int argc, char *argv[]) {
  int n;
  cin >> n;
  vector<int> v(9, 0);
  for (int i = 0; i < (int)n; ++i) {
    int a;
    cin >> a;
    for (int j = 0; j < (int)9; ++j)
      if (a < col[j]) {
        v[j] += 1;
        break;
      }
  }
  int amin = 0, amax = 0;
  for (int i = 0; i < (int)9; ++i)
    if (v[i] > 0) amin++, amax++;
  if (amin > 1 && v[8] > 0) amin--;
  if (v[8] > 0) amax += v[8] - 1;
  cout << amin << " " << amax << endl;
  return 0;
}
