#include <bits/stdc++.h>
using namespace std;
const double EPS = 1e-10;
using ll = long long;
using Pi = pair<int, int>;
using Pl = pair<ll, ll>;
int main() {
  int n;
  cin >> n;
  vector<int> a(n);
  for (int i = (int)(0); i < (int)(n); i++) cin >> a[i];
  vector<int> cnt(10);
  for (int i = (int)(0); i < (int)(n); i++) {
    int k = a[i] / 400;
    if (k <= 7)
      cnt[k]++;
    else
      cnt[8]++;
  }
  int ans = 0;
  for (int i = (int)(0); i < (int)(8); i++) {
    if (cnt[i]) ans++;
  }
  cout << ans << " " << ans + cnt[8] << endl;
}
