#include <bits/stdc++.h>
using namespace std;
using UI = unsigned int;
using UL = unsigned long;
using LL = long long int;
using ULL = unsigned long long;
using VI = vector<int>;
using VVI = vector<VI>;
using VLL = vector<LL>;
using VS = vector<string>;
using PII = pair<int, int>;
using VP = vector<PII>;
constexpr double EPS = 1e-10;
template <class T>
inline T sqr(T x) {
  return x * x;
}
void solve() {
  int c[9] = {};
  int n;
  cin >> n;
  int in;
  for (int i = int(0); i < int(n); i++) {
    cin >> in;
    c[in / 400]++;
  }
  int sum = 0;
  for (int i = int(0); i < int(8); i++) sum += c[i] > 0;
  cout << max(sum, min(1, c[8])) << " " << sum + c[8] << endl;
}
int main() {
  solve();
  return 0;
}
