#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, b, d, x, ans = 0, j = 0;
  cin >> n >> b >> d;
  while (n--) {
    cin >> x;
    if (x <= b) j += x;
    if (j > d) j = 0, ans++;
  }
  cout << ans;
  return 0;
}
