#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, b, d;
  cin >> n >> b >> d;
  int arr[n], total = 0, waste = 0;
  for (int i = 0; i < n; i++) cin >> arr[i];
  for (int i = 0; i < n; i++) {
    if (arr[i] <= b) total += arr[i];
    if (total > d) {
      waste++;
      total = 0;
    }
  }
  cout << waste;
  return 0;
}
