#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  int colors[10];
  for (int i = (0); i < (10); ++i) {
    colors[i] = 0;
  }
  int pros = 0;
  for (int i = (0); i < (N); ++i) {
    int score;
    cin >> score;
    if (score >= 3200) {
      pros += 1;
    } else {
      colors[score / 400] += 1;
    }
  }
  int cnum = 0;
  for (int i = (0); i < (8); ++i) {
    if (colors[i] > 0) {
      cnum++;
    }
  }
  int mn = min(cnum, 1);
  int mx = min(cnum + pros, 8);
  cout << mn << " " << mx << endl;
  return 0;
}
