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