#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, b, d;
  cin >> n >> b >> d;
  int val = 0;
  int ans = 0;
  for (int i = 0; i < n; i++) {
    int a;
    cin >> a;
    if (a > b) continue;
    val += a;
    if (val > d) {
      ans++;
      val = 0;
    }
  }
  cout << ans << endl;
  return 0;
}
