#include <bits/stdc++.h>
using namespace std;
int main() {
  int rate[9] = {0, 400, 800, 1200, 1600, 2000, 2400, 2800, 3200};
  int count[8] = {0, 0, 0, 0, 0, 0, 0, 0};
  int all = 0;
  int n;
  cin >> n;
  int a[n];
  for (int i = 0; i < n; i++) {
    cin >> a[i];
  }
  for (int i = 0; i < n; i++) {
    for (int k = 0; k < 8; k++) {
      if (rate[k] < a[i] && a[i] < rate[k + 1]) {
        count[k] += 1;
      }
    }
    if (a[i] >= 3200) {
      all++;
    }
  }
  int min = 0;
  for (int i = 0; i < 8; i++) {
    if (count[i] > 0) {
      min++;
    }
  }
  for (int i = 0; i < all; i++) {
    for (int k = 0; k < 8; k++) {
      if (count[k] == 0) {
        count[k] += 1;
      }
    }
  }
  int max = 0;
  for (int i = 0; i < 8; i++) {
    if (count[i] > 0) {
      max++;
    }
  }
  cout << min << " " << max << endl;
}
