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