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