#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using vi = vector<int>;
using vvi = vector<vi>;
using vll = vector<ll>;
using pii = pair<int, int>;
using tiii = tuple<int, int, int>;
const int mod = 1000000007;
const double EPS = 1e-9;
const int INF = 1 << 30;
const ll INFLL = 1LL << 60;
template <class T>
inline bool chmax(T& a, T b) {
  if (a < b) {
    a = b;
    return true;
  }
  return false;
}
template <class T>
inline bool chmin(T& a, T b) {
  if (a > b) {
    a = b;
    return true;
  }
  return false;
}
int main() {
  int n;
  cin >> n;
  vector<bool> color(8);
  int free = 0;
  for (int i = (0); i < (n); ++i) {
    int a;
    cin >> a;
    for (int j = (0); j < (8); ++j) {
      if (400 * j <= a && a < 400 * (j + 1)) {
        color[j] = true;
        break;
      }
    }
    if (a >= 3200) free++;
  }
  int mi = 0, ma;
  for (int i = (0); i < (8); ++i) {
    if (color[i]) mi++;
  }
  ma = mi + free;
  cout << mi << " " << ma << endl;
  return 0;
}
