#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int a[100], c = 0;
  for (int i = (0); i < (n); ++i) {
    cin >> a[i];
    if (a[i] >= 3200) c++;
  }
  bool f[8] = {};
  for (int i = (0); i < (n); ++i) {
    for (int j = (0); j < (8); ++j) {
      if (f[j]) continue;
      if (400 * j <= a[i] && a[i] < 400 * (j + 1)) f[j] = true;
    }
  }
  int k = count(f, f + 8, true);
  cout << k << " " << k + c << endl;
  return 0;
}
