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