#include <bits/stdc++.h>
using namespace std;
template <typename T>
inline bool chmax(T& a, T b) {
  if (a < b) {
    a = b;
    return 1;
  }
  return 0;
}
template <typename T>
inline bool chmin(T& a, T b) {
  if (a > b) {
    a = b;
    return 1;
  }
  return 0;
}
const long long INF = 1LL << 60;
const int INT_INF = 1LL << 30;
int main() {
  long long N;
  cin >> N;
  vector<long long> color(9, 0);
  for (int i = 0; i < N; i++) {
    long long a;
    cin >> a;
    long long b = min(a / 400, 8LL);
    color.at(b)++;
  }
  long long counter = 0;
  for (int i = 0; i < 8; i++) {
    if (color.at(i) != 0) counter++;
  }
  cout << max(1LL, counter) << ' ' << min(8LL, counter + color.at(8)) << endl;
}
