#include <bits/stdc++.h>
using namespace std;
const int INF = 1e9 + 5;
const long long MOD = 1000000007LL;
int main() {
  long long n;
  cin >> n;
  vector<long long> a(n);
  for (long long i = 0; i < (long long)(n); i++) cin >> a[i];
  set<long long> S;
  long long count = 0;
  for (long long i = 0; i < (long long)(n); i++) {
    if (a[i] >= 3200) {
      count++;
      continue;
    }
    S.insert(a[i] / 400);
  }
  long long k = S.size();
  cout << S.size() << " " << k + count << endl;
}
