#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int a[n];
  int rate[10] = {};
  int i;
  for (i = 0; i < n; i++) {
    cin >> a[i];
    rate[a[i] / 400]++;
  }
  int result = 0;
  for (i = 0; i < 8; i++) {
    if (rate[i]) {
      result++;
    }
  }
  cout << result << ' ' << min(result + rate[8], 8) << endl;
  return 0;
}
