#include <bits/stdc++.h>
using namespace std;
static const double EPS = 1e-8;
static const double PI = 4.0 * atan(1.0);
static const double PI2 = 8.0 * atan(1.0);
int n, a;
int cnt[9];
int main(int argc, char **argv) {
  cin >> n;
  memset(cnt, 0, sizeof(cnt));
  for (int i = 0; i < (int)n; ++i) {
    cin >> a;
    ++cnt[min(8, a / 400)];
  }
  int res = 0;
  for (int i = 0; i < (int)8; ++i)
    if (cnt[i] != 0) ++res;
  if (res == 0)
    cout << 1 << ' ' << min(8, cnt[8]) << endl;
  else
    cout << res << ' ' << min(8, res + cnt[8]) << endl;
  return 0;
}
