#include <bits/stdc++.h>
long long int max(long long int a, long long int b) {
  if (a >= b)
    return a;
  else
    return b;
}
long long int min(long long int a, long long int b) {
  if (a >= b)
    return b;
  else
    return a;
}
using namespace std;
int main() {
  int colorNum[9] = {1, 400, 800, 1200, 1600, 2000, 2400, 2800, 3200};
  int colorFlag[9] = {0, 0, 0, 0, 0, 0, 0, 0, 0};
  int n;
  cin >> n;
  int *a;
  a = new int[n];
  for (int i = 0; i < n; i++) {
    cin >> a[i];
    for (int j = 8; j >= 0; j--) {
      if (a[i] >= colorNum[j]) {
        colorFlag[j]++;
        break;
      }
    }
  }
  int minAns = 0;
  int maxAns = 0;
  for (int i = 0; i < 8; i++) {
    if (colorFlag[i] > 0) {
      minAns++;
      maxAns++;
    }
  }
  maxAns = min(8, maxAns + colorFlag[8]);
  minAns = max(1, minAns);
  cout << minAns << " " << maxAns << endl;
  return 0;
}
