#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using pll = pair<ll, ll>;
using vl = vector<ll>;
using vll = vector<vl>;
using vpll = vector<pll>;
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 MOD = 1e9 + 7;
int main() {
  int n;
  vector<int> a(n);
  cin >> n;
  vector<int> b(8, 0);
  int x = 0;
  for (int i = 0; i < (int)(n); i++) {
    cin >> a[i];
    int rate = 0;
    for (int j = 0; j < (int)(8); j++) {
      if (rate <= a[i] && a[i] < rate + 400) {
        b[j] += 1;
        break;
      }
      rate += 400;
    }
    if (a[i] >= 3200) {
      x += 1;
    }
  }
  int ans = 0;
  for (int i = 0; i < (int)(8); i++) {
    if (b[i]) ans += 1;
  }
  int max = min(8, ans + x);
  cout << ans << " " << max << endl;
}
