#include <bits/stdc++.h>
using namespace std;
int main() {
  vector<int> a(8);
  int n, counter1 = 0;
  cin >> n;
  for (int i = 0; i < n; i++) {
    int b;
    cin >> b;
    if (b >= 3200) {
      counter1++;
    } else {
      a.at(b / 400)++;
    }
  }
  int counter2 = 0;
  for (int i = 0; i < 8; i++) {
    if (a.at(i)) {
      counter2++;
    }
  }
  cout << counter2 << ' ' << counter1 + counter2 << endl;
}
