#include <bits/stdc++.h>
using namespace std;
long long gcd_(long long a, long long b) {
  if (a % b == 0) return b;
  return gcd_(b, a % b);
}
long long lcm_(long long a, long long b) {
  long long c = gcd_(a, b);
  return ((a / c) * (b / c) * c);
}
const long long INF = long long(1e16) + long long(7);
const long long MOD = 1000000007LL;
long long keta(long long a) {
  long long r = 0;
  while (a) {
    a /= 10;
    r++;
  }
  return r;
}
long long ketawa(long long a) {
  long long r = 0;
  while (a) {
    r += a % 10;
    a /= 10;
  }
  return r;
}
int main() {
  int n, min_ = 0, max_ = 0;
  vector<int> cnt(9, 0);
  cin >> n;
  for (long long i = long long(0); i < long long(n); ++i) {
    int a;
    cin >> a;
    for (long long i = long long(1); i < long long(9); ++i) {
      if (a < 400 * i) {
        cnt[i]++;
        if (cnt[i] == 1) min_++;
        break;
      }
      if (i == 8) max_++;
    }
  }
  cout << min_ << " " << min_ + max_ << endl;
}
