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