#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, a[100] = {0};
  cin >> n;
  int b[9] = {0};
  for (int i = 0; i < n; i++) {
    cin >> a[i];
    if (a[i] < 3200) {
      a[i] /= 400;
    } else {
      a[i] = 8;
    }
  }
  int max = a[0];
  for (int i = 1; i < n; i++) {
    if (max < a[i]) {
      max = a[i];
    }
  }
  for (int i = 0; i < n; i++) {
    b[a[i]] += 1;
  }
  int sum1 = 0, sum2 = 0;
  for (int i = 1; i < 8; i++) {
    if (b[i] >= 1) {
      sum1 += 1;
    }
  }
  if (max == 8) {
    cout << sum1 << ' ' << sum1 + b[8] << endl;
  } else {
    cout << sum1 << ' ' << sum1 << endl;
  }
}
