#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int dist[] = {0, 0, 0, 0, 0, 0, 0, 0, 0};
  int score;
  for (int i = 0; i < n; i++) {
    cin >> score;
    int rank = floor(score / 400.0);
    if (rank >= 8) {
      dist[8]++;
    } else {
      dist[rank]++;
    }
  }
  int res = 0;
  for (int i = 0; i < 8; i++) {
    if (dist[i]) {
      res++;
    }
  }
  cout << res << " " << res + dist[8] << endl;
}
