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