#include <bits/stdc++.h>
using namespace std;
int main(void) {
  int n;
  cin >> n;
  vector<int> a(n);
  vector<int> c(8, 0);
  int sum = 0;
  int minas = 0;
  int i;
  for (i = 0; i < n; i++) {
    cin >> a[i];
  }
  int yonnhyaku = 400;
  int j;
  for (j = 0; j < n; j++) {
    for (i = 0; i < 8; i++) {
      if (yonnhyaku * i <= a[j] && a[j] < yonnhyaku * (i + 1)) {
        if (c[i] == 0) c[i]++;
      } else if (3200 <= a[j]) {
        minas++;
        break;
      }
    }
  }
  for (i = 0; i < 8; i++) {
    sum = sum + c[i];
  }
  cout << sum << " " << sum + minas << endl;
  return 0;
}
