#include <bits/stdc++.h>
using namespace std;
int main(void) {
  int n, b, d;
  cin >> n >> b >> d;
  int count = 0, rem = 0;
  for (int i = 0; i < n; i++) {
    int temp;
    cin >> temp;
    if (temp <= b) {
      rem += temp;
      if (rem > d) {
        count++;
        rem = 0;
      }
    }
  }
  cout << count << '\n';
}
