#include <bits/stdc++.h>
using namespace std;
const int inf = (int)1e9;
const long long linf = (long long)1e18;
const int mod = (int)(1e9 + 7);
const int dx[] = {0, 1, 0, -1};
const int dy[] = {1, 0, -1, 0};
const int ddx[] = {0, 1, 1, 1, 0, -1, -1, -1};
const int ddy[] = {1, 1, 0, -1, -1, -1, 0, 1};
struct oreno_initializer {
  oreno_initializer() {
    cin.tie(0);
    ios::sync_with_stdio(0);
  }
} oreno_initializer;
int n, a, r[9], mn;
int main() {
  cin >> n;
  for (int(i) = 0; (i) < (int)(n); (i)++) {
    cin >> a;
    if (a >= 3200)
      r[8]++;
    else
      r[a / 400]++;
  }
  for (int(i) = 0; (i) < (int)(8); (i)++)
    if (r[i] > 0) mn++;
  if (mn == 0 && r[8])
    cout << mn + 1 << " ";
  else
    cout << mn << " ";
  cout << min(8, mn + r[8]) << "\n";
}
