#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  long N, A, D, X, V = 0, C = 0;
  cin >> N >> A >> D;
  while (N--) {
    cin >> X;
    V += ((X) * (X <= A));
    if (V > D) {
      V = 0;
      C++;
    }
  }
  cout << C;
}
