#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int colorMin = 0;
  int colorMax = 0;
  int rateArray[10] = {0, 0, 0, 0, 0, 0, 0, 0, 0};
  for (int i = 0; i < n; i++) {
    int rate;
    cin >> rate;
    if (rate >= 3200) {
      rateArray[8]++;
    } else {
      rateArray[rate / 400]++;
    }
  }
  int count = 0;
  for (int i = 0; i < 8; i++) {
    if (rateArray[i] != 0) {
      count++;
    }
  }
  count == 0 ? 1 : count;
  colorMin = count;
  colorMax = count + rateArray[8] > 8 ? 8 : count + rateArray[8];
  cout << colorMin << " " << colorMax << "\n";
  return 0;
}
