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