#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  vector<int> a(n);
  vector<bool> c(8, false);
  for (int i = 0; i < n; i++) {
    cin >> a.at(i);
  }
  int r1 = 0;
  int r2 = 400;
  int o = 0;
  for (int i = 0; i < 8; i++) {
    for (int j = 0; j < n; j++) {
      if (a.at(j) >= r1 && a.at(j) < r2) {
        c.at(i) = true;
      }
    }
    r1 += 400;
    r2 += 400;
  }
  for (int i = 0; i < n; i++) {
    if (a.at(i) >= 3200) {
      o++;
    }
  }
  int ans = 0;
  for (int i = 0; i < 8; i++) {
    if (c.at(i)) {
      ans++;
    }
  }
  int ans2 = ans + o;
  cout << ans << " " << ans2 << endl;
}
