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