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