#include <bits/stdc++.h>
using namespace std;
const int inf = 1e9;
const long long linf = 1LL << 50;
const double eps = 1e-10;
const int mod = 1e9 + 7;
const int dx[4] = {-1, 0, 1, 0};
const int dy[4] = {0, -1, 0, 1};
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  long long n;
  cin >> n;
  vector<long long> a(n);
  for (int i = 0; i < ((int)n); i++) cin >> a[i];
  vector<long long> r = {1, 400, 800, 1200, 1600, 2000, 2400, 2800, 3200};
  map<long long, long long> rmap;
  for (int i = 0; i < ((int)n); i++) {
    for (int j = 0; j < ((int)r.size()); j++) {
      if (a[i] < r[j]) {
        rmap[j - 1]++;
        break;
      }
      if (j == r.size() - 1) rmap[j]++;
    }
  }
  long long sum = 0;
  for (int j = 0; j < ((int)r.size()); j++) {
    if (j == r.size() - 1)
      sum += rmap[j];
    else if (rmap[j] != 0)
      sum++;
  }
  cout << sum - rmap[r.size() - 1] << " " << sum << endl;
}
