#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
  ll a = 0, b = 0, c = 0, d = 0, e = 0, f = 0, g = 0, h = 0, ans = 0;
  ll n, m, K;
  ll memo[1003][1003] = {{}};
  ll memox[1003] = {};
  ll memoy[1003] = {};
  ll x[1000006] = {};
  ll y[200005] = {};
  ll z[200005] = {};
  string s;
  string s1, s2;
  cin >> a;
  for (int i = 0; i < a; i++) {
    cin >> x[i];
    for (int k = 1; k <= 9; k++) {
      if (k == 9) {
        b++;
      } else if (x[i] < k * 400) {
        if (y[k] != 1) {
          ans++;
        }
        y[k] = 1;
        break;
      }
    }
  }
  if (b == 0) {
    cout << 1 << endl;
  } else {
    cout << b << endl;
  }
  cout << b + ans << endl;
  return 0;
}
