#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, b, d, a, h1 = 0, h2 = 0;
  cin >> n >> b >> d;
  for (int c = 0; c < n; c++) {
    cin >> a;
    if (a > b)
      continue;
    else {
      h1 += a;
      if (h1 > d) {
        h1 = 0;
        h2++;
      }
    }
  }
  cout << h2;
}
