#include <bits/stdc++.h>
long long a[114];
using namespace std;
signed main() {
  long long n;
  cin >> n;
  for (long long i = 0; i < n; i++) {
    cin >> a[i];
  }
  for (long long i = 0; i < n; i++) {
    a[i] = a[i] / 400;
  }
  sort(a, a + n);
  long long sum1 = 0;
  long long sum2 = 0;
  for (long long i = 0; i < n; i++) {
    if (a[i] <= 7 && a[i] != a[i + 1]) {
      sum1++;
    }
    if (a[i] >= 8) {
      sum2++;
    }
  }
  cout << sum1 << " " << sum1 + sum2 << endl;
}
