#include <bits/stdc++.h>
using namespace std;
const int INF = 1e9 + 1;
template <class T>
inline bool chmax(T& a, T b) {
  if (a < b) {
    a = b;
    return 1;
  }
  return 0;
}
template <class T>
inline bool chmin(T& a, T b) {
  if (a > b) {
    a = b;
    return 1;
  }
  return 0;
}
int N;
int C[9];
int main() {
  cin >> N;
  vector<int> a(N);
  for (int i = 0; i < N; i++) cin >> a[i];
  for (int i = 0; i < N; i++) {
    C[min(8, a[i] / 400)]++;
  }
  int resmin = 0, resmax = 0;
  for (int i = 0; i < 8; i++) {
    if (C[i]) {
      resmin++;
      resmax++;
    }
  }
  resmin = max(1, resmin);
  resmax = min(8, resmax + C[8]);
  cout << resmin << " " << resmax << endl;
}
