#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int a[n];
  int rate[9] = {0, 0, 0, 0, 0, 0, 0, 0, 0};
  for (int i = 0; i < n; i++) {
    cin >> a[i];
    if (a[i] < 400) {
      rate[0]++;
    } else if (a[i] < 800) {
      rate[1]++;
    } else if (a[i] < 1200) {
      rate[2]++;
    } else if (a[i] < 1600) {
      rate[3]++;
    } else if (a[i] < 2000) {
      rate[4]++;
    } else if (a[i] < 2400) {
      rate[5]++;
    } else if (a[i] < 2800) {
      rate[6]++;
    } else if (a[i] < 3200) {
      rate[7]++;
    } else {
      rate[8]++;
    }
  }
  int result = 0;
  for (int i = 0; i < 8; i++) {
    if (rate[i]) {
      result++;
    }
  }
  if (result != 0) {
    cout << result << " " << result + rate[8] << endl;
  } else {
    cout << 1 << rate[8] << endl;
  }
}
