#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using vi = vector<int>;
using vvi = vector<vi>;
using vvvi = vector<vvi>;
using vll = vector<ll>;
using vvll = vector<vll>;
using vvvll = vector<vvll>;
using vs = vector<string>;
using pll = pair<ll, ll>;
using vp = vector<pll>;
inline ll GCD(ll a, ll b) { return b ? GCD(b, a % b) : a; }
const int MOD = 1000000007;
int main() {
  ll N;
  cin >> N;
  vll a(N);
  vi ans(8, 0);
  ll ansq = 0;
  for (int i = 0; i < (N); i++) {
    cin >> a[i];
    if (a[i] < 3200) {
      ans[a[i] / 400] = 1;
    } else {
      ansq++;
    }
  }
  int a1 = accumulate((ans).begin(), (ans).end(), 0);
  int a2 = min(a1 + ansq, 8LL);
  cout << a1 << " " << a2 << endl;
}
