#include <bits/stdc++.h>
using namespace std;
using ull = unsigned long long;
using ll = long long;
constexpr int I_INF = INT_MAX;
constexpr ll L_INF = LLONG_MAX;
const long double PI = (acos(-1));
const ull MOD = 1000000007;
struct __INIT {
  __INIT() {
    cin.tie(nullptr);
    ios::sync_with_stdio(false);
    cout << fixed << setprecision(15);
  }
} __init;
int main() {
  int N;
  cin >> N;
  vector<int> A(N);
  for (int i = 0; i < N; i++) cin >> A[i];
  map<int, int> cnt;
  int over = 0;
  for (int a : A) {
    bool exist = false;
    for (int i = 0; i <= 7; i++) {
      if (i * 400 <= a and a < (i + 1) * 400) {
        cnt[i]++;
        exist = true;
        break;
      }
    }
    if (!exist) over++;
  }
  cout << max(1, (int)cnt.size()) << ' ';
  cout << min(8, (int)cnt.size() + over) << endl;
}
