#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int g = 0;
  set<int> colors;
  while (n--) {
    int a;
    cin >> a;
    if (a < 3200) {
      colors.insert(a / 400);
    } else {
      g++;
    }
  }
  cout << colors.size() << " " << colors.size() + g << endl;
}
