#include <bits/stdc++.h>
using namespace std;
int cnt[9];
int main() {
  int n;
  cin >> n;
  for (int i = 0; i < (n); ++i) {
    int a;
    cin >> a;
    ++cnt[a / 400];
  }
  int l = 0, r = 0;
  for (int i = 0; i < (8); ++i)
    if (cnt[i]) ++l;
  r = l + min(9 - l, cnt[8]);
  l = max(1, l);
  cout << l << " " << r << endl;
  return 0;
}
