#include <bits/stdc++.h>
using namespace std;
const int MAXN = 100;
int a[MAXN];
int color[8];
bool nuru(int v) {
  for (int i = 0; i < 8; ++i) {
    if (v < 400 * (i + 1)) {
      color[i] = 1;
      return true;
    }
  }
  return false;
}
void solve() {
  int n;
  cin >> n;
  for (long long i = 0; i < n; ++i) {
    cin >> a[i];
  }
  int ans = 0;
  for (long long i = 0; i < n; ++i) {
    if (!nuru(a[i])) {
      ans++;
    }
  }
  int ans1 = 0;
  for (long long i = 0; i < 8; ++i) {
    ans1 += color[i];
  }
  cout << (ans1 == 0 ? 1 : ans1) << " ";
  ans += ans1;
  cout << (ans >= 8 ? 8 : ans) << endl;
}
int main() {
  solve();
  return 0;
}
