#include <bits/stdc++.h>
using namespace std;
const long long mod = 1000000007;
const long long INF = mod * mod;
const long double eps = 1e-8;
const long double pi = acos(-1.0);
void solve() {
  int N;
  cin >> N;
  map<int, int> mp;
  int maxi = 0, mini = 0;
  for (int i = 0; i < N; i++) {
    int a;
    cin >> a;
    a /= 400;
    if (a >= 8) {
      a = 8;
    }
    mp[a]++;
    if (mp[a] == 1 && a <= 7) {
      mini++;
      maxi++;
    }
    if (mp[a] == 1 && a == 8) {
      mini++;
      maxi++;
    }
    if (mp[a] > 1 && a == 8) {
      maxi++;
    }
  }
  cout << mini << " " << maxi << endl;
}
signed main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  solve();
  return 0;
}
