#include <bits/stdc++.h>
using namespace std;
const int inf = 1e9 + 7;
const long long infll = 1ll << 60ll;
const long long mod = 1e9 + 7;
constexpr int dx[] = {1, 0, -1, 0, 1, 1, -1, -1};
constexpr int dy[] = {0, -1, 0, 1, 1, -1, -1, 1};
int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  int n;
  cin >> n;
  vector<int> a(n);
  for (int i = 0; i < n; i++) cin >> a[i];
  vector<int> exist(9, 0);
  for (int i = 0; i < n; i++) {
    if (a[i] >= 3200) {
      exist[8]++;
      continue;
    }
    for (int j = 0; j < 8; j++) {
      if (a[i] >= 400 * j && a[i] < 400 * (j + 1)) exist[j]++;
    }
  }
  int colorSum = 0;
  for (int i = 0; i < 8; i++) {
    if (exist[i] >= 1) colorSum++;
  }
  cout << max(colorSum, 1) << " " << min(colorSum + exist[8], 8) << endl;
}
