#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  vector<int> a(N);
  vector<bool> T(8, false);
  int T1 = 0;
  int T2 = 0;
  for (int i = 0; i < N; i++) {
    cin >> a[i];
    if (a[i] < 3200) {
      T[a[i] / 400] = true;
    } else {
      T2++;
    }
  }
  for (int i = 0; i < 8; i++) {
    if (T[i]) {
      T1++;
    }
  }
  cout << T1 << " " << T1 + T2 << endl;
}
