#include <bits/stdc++.h>
using namespace std;
struct Fast {
  Fast() {
    cin.tie(0);
    ios::sync_with_stdio(false);
    cout << fixed << setprecision(20);
  }
} fast;
long long mod = 1000000007;
long long div(long long a, long long b, long long c) {
  return b / c - (a - 1) / c;
}
int main() {
  int n, min = 0, s = 0;
  cin >> n;
  vector<long> as(n);
  map<int, int> cnt;
  for (int i = 0; i < n; i++) {
    cin >> as[i];
  }
  for (int i = 0; i < n; i++) {
    cnt[as[i] / 400]++;
    if (as[i] >= 3200) {
      s++;
    }
  }
  for (int i = 0; i < 8; i++) {
    if (cnt[i] > 0) {
      min++;
    }
  }
  if (min == 8) {
    cout << min << " " << min << endl;
    return 0;
  } else {
    cout << min << " " << min + s << endl;
  }
}
