#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int n, a[100], cnt = 0, yan = 0;
  long long int b[20] = {};
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> a[i];
    if (b[a[i] / 400] == 0 && a[i] < 3200) {
      b[a[i] / 400] = 1;
    }
    if (a[i] >= 3200) {
      cnt++;
    }
  }
  for (int i = 0; i < 8; i++) {
    if (b[i] == 1) {
      yan++;
    }
  }
  cout << yan << " " << yan + cnt << endl;
}
