#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  vector<bool> color(8, false);
  int f = 0;
  for (int i = 0; i < n; i++) {
    int a;
    cin >> a;
    a /= 400;
    if (a >= 8) {
      f++;
    } else {
      color[a] = true;
    }
  }
  int minAns = 0, maxAns = 0;
  for (int i = 0; i < 8; i++) {
    minAns += color[i];
  }
  maxAns = min(minAns + f, 8);
  minAns = max(minAns, 1);
  cout << minAns << " " << maxAns << endl;
  return 0;
}
