#include <bits/stdc++.h>
using namespace std;
constexpr long long mod = 1000000007;
constexpr long long INF = (1ll << 60);
constexpr double pi = 3.14159265358979323846;
template <typename T>
inline bool chmax(T &a, T b) {
  if (a < b) {
    a = b;
    return 1;
  }
  return 0;
}
template <typename T>
inline bool chmin(T &a, T b) {
  if (a > b) {
    a = b;
    return 1;
  }
  return 0;
}
long long mypow(long long a, long long b) {
  long long ret = 1;
  while (b--) {
    ret *= a;
  }
  return ret;
}
int main() {
  long long n;
  cin >> n;
  vector<long long> cnt(9);
  for (long long i = 0; i < n; ++i) {
    long long a;
    cin >> a;
    cnt[a / 400]++;
  }
  long long no = 0;
  for (long long i = 0; i < 8; ++i) {
    if (cnt[i] == 0) no++;
  }
  if (no != 8) {
    cout << 8 - no << " ";
  } else if (cnt[8] != 0) {
    cout << 1 << " ";
  }
  cout << 8 - no + min(no, cnt[8]) << "\n";
  return 0;
}
