#include <bits/stdc++.h>
using namespace std;
constexpr long long INF = 1LL << 40;
const double INFD = 1e100;
const long long mod = 1000000007;
const double PI = 3.1415926535897932384626433832795028841971;
const int dx[4] = {1, 0, -1, 0};
const int dy[4] = {0, 1, 0, -1};
template <class T>
inline bool chmin(T& a, T b) {
  if (a > b) {
    a = b;
    return true;
  }
  return false;
}
template <class T>
inline bool chmax(T& a, T b) {
  if (a < b) {
    a = b;
    return true;
  }
  return false;
}
int main() {
  int N;
  cin >> N;
  vector<int> a(N);
  for (int i = 0; i < N; i++) {
    cin >> a[i];
  }
  vector<int> color(10, 0);
  for (int i = 0; i < N; i++) {
    if (a[i] >= 2800) {
      color[9]++;
    } else {
      color[a[i] / 400 + 1]++;
    }
  }
  int var = 0;
  for (int i = 1; i <= 8; i++) {
    if (color[i]) {
      var++;
    }
  }
  if (var == 0) {
    cout << 1 << " " << color[9] << endl;
  } else {
    if (color[9]) {
      cout << var + 1 << " " << var + color[9] << endl;
    } else {
      cout << var << " " << var << endl;
    }
  }
  return 0;
}
