#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, color = 0, cool = 0, num;
  cin >> n;
  vector<int> seen(8);
  for (int i = 0; i < n; i++) {
    cin >> num;
    if (num < 3200) {
      seen[num / 400]++;
    } else {
      cool++;
    }
  }
  for (int k = 0; k < 8; k++) {
    if (seen[k] > 0) {
      color++;
    }
  }
  cout << color << " " << color + cool << endl;
  return 0;
}
