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