#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  vector<int> a(n);
  for (int i = 0; i < (n); ++i) cin >> a[i];
  int mx = 0, mn = 0;
  vector<bool> c(8);
  for (int i = 0; i < (n); ++i) {
    if (a[i] >= 3200) {
      mx++;
      if (mn == 0) mn++;
    } else {
      int now = a[i] / 400;
      if (!c[now]) {
        c[now] = true;
        mx++;
        mn++;
      }
    }
  }
  cout << mn << " " << mx << endl;
  return 0;
}
