#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int color[100] = {};
  for (int i = 0; i < n; i++) {
    int a;
    cin >> a;
    color[a / 400]++;
  }
  int mi = 0, ma = 0;
  for (int i = 0; i < 8; i++) {
    if (color[i]) {
      mi++;
      ma++;
    }
  }
  ma += color[8];
  if (mi == 0) mi++;
  cout << mi << " " << ma << endl;
  return 0;
}
