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