#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int a[n];
  for (int i = 0; i < n; i++) cin >> a[i];
  sort(a, a + n);
  int c = 1, cc = 0;
  for (int i = 1; i < n; i++) {
    if (a[i] < 3200 && a[i - 1] / 400 != a[i] / 400) {
      c++;
    } else if (a[i] >= 3200) {
      cc++;
    }
  }
  cout << c << " " << min(c + cc, 8);
}
