#include <bits/stdc++.h>
using namespace std;
int main(int argc, char const *argv[]) {
  int n, b, d;
  cin >> n >> b >> d;
  int w = 0, t = 0;
  int tmp;
  while (n--) {
    cin >> tmp;
    if (tmp <= b) w += tmp;
    if (w > d) t++, w = 0;
  }
  cout << t << endl;
}
