#include <bits/stdc++.h>
using namespace std;
template <typename T>
T id(T b) {
  return b;
};
template <class It>
bool all(It f, It l) {
  return std::all_of(f, l, id<bool>);
}
template <class It>
bool any(It f, It l) {
  return std::any_of(f, l, id<bool>);
}
int n;
int cnt[9] = {};
int main() {
  cin >> n;
  for (int i = 0; i < n; ++i) {
    int a;
    cin >> a;
    if (a >= 3200)
      cnt[8]++;
    else
      cnt[a / 400]++;
  }
  int c = 0;
  for (int i = 0; i < 8; ++i)
    if (cnt[i] > 0) c++;
  cout << max(1, c) << " " << min(9, c + cnt[8]) << endl;
  return 0;
}
