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