#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++) {
    rate[min(a[i] / 400, 8)]++;
  }
  for (int i = 0; i < 8; i++) {
    if (rate[i] > 0) Min++;
  }
  Max = min(Min + rate[8], 8);
  cout << Min << " " << Max << endl;
}
