#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, b, d, i, cnt = 0, sum = 0;
  cin >> n >> b >> d;
  int a[100000];
  for (i = 0; i < n; i++) {
    cin >> a[i];
    if (a[i] <= b) {
      sum += a[i];
    }
    if (sum > d) {
      sum = 0;
      cnt++;
    }
  }
  cout << cnt << endl;
}
