#include <bits/stdc++.h>
using namespace std;
using ll = long long;
template <class T>
inline bool chmin(T& a, T b, bool f) {
  if (f == 1) {
    if (a > b) {
      a = b;
      return true;
    }
    return false;
  } else if (f == 0) {
    if (a < b) {
      a = b;
      return true;
    }
    return false;
  }
  return false;
}
const int inf = 2147483647;
const ll INF = 9223372036854775807;
int main() {
  int n;
  cin >> n;
  vector<int> a(n);
  for (int i = 0; i < n; i++) cin >> a[i];
  vector<int> col(8, 0);
  int red = 0;
  for (int i = 0; i < n; i++) {
    if (a[i] >= 3200)
      red++;
    else
      col[a[i] / 400]++;
  }
  int mi = 0;
  for (int i = 0; i < 8; i++) {
    if (col[i] > 0) mi++;
  }
  cout << mi << " ";
  mi = mi + red;
  if (mi > 8) mi = 8;
  cout << mi << "\n";
  return 0;
}
