#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using pii = pair<int, int>;
int main() {
  int n;
  cin >> n;
  vector<int> a(n);
  for (int i = 0; i < (n); i++) cin >> a[i];
  vector<int> cnt(9);
  for (int i = 0; i < (n); i++) {
    int t = a[i] / 400;
    if (t > 8) t = 8;
    cnt[t]++;
  }
  int mn = 0;
  for (int i = 0; i < (8); i++) {
    if (cnt[i]) mn++;
  }
  int mx = mn + cnt[8];
  cout << mn << " " << mx << endl;
  return 0;
}
