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