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