#include <bits/stdc++.h>
using namespace std;
int main(void) {
  int n;
  cin >> n;
  int a[100];
  for (int i = 0; i < n; i++) {
    cin >> a[i];
  }
  int sum = 0;
  int over = 0;
  int min, max;
  int color[8] = {0};
  for (int i = 0; i < n; i++) {
    if (a[i] / 400 >= 8) {
      over++;
    } else {
      color[a[i] / 400]++;
    }
  }
  for (int i = 0; i < 8; i++) {
    if (color[i] != 0) sum++;
  }
  if (sum == 0) {
    cout << "1"
         << " ";
    if (over > 8) {
      cout << "8" << endl;
      return 0;
    } else {
      cout << over << endl;
      return 0;
    }
  } else {
    min = sum;
    max = sum + over;
    if (max > 8) max = 8;
    cout << min << " " << max << endl;
  }
  return 0;
}
