#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  bool a[8] = {};
  int free = 0;
  for (int i = 0; i < (n); ++i) {
    int score;
    cin >> score;
    if (score < 3200) {
      a[score / 400] = true;
    } else {
      free++;
    }
  }
  int colors = 0;
  for (int i = 0; i < (8); ++i) {
    if (a[i] == true) {
      colors++;
    }
  }
  cout << colors << " " << colors + free << endl;
  return 0;
}
