#include <bits/stdc++.h>
using namespace std;
const int LOGN = 20;
const int INF = int(1e9);
int a[100005];
int main() {
  int n, b, d;
  cin >> n >> b >> d;
  for (__typeof(n) i = (0) - ((0) > (n)); i != (n) - ((0) > (n));
       i += 1 - 2 * ((0) > (n)))
    cin >> a[i];
  int cnt = 0;
  long long int sum = 0;
  for (__typeof(n) i = (0) - ((0) > (n)); i != (n) - ((0) > (n));
       i += 1 - 2 * ((0) > (n))) {
    if (a[i] <= b) {
      sum += a[i];
    }
    if (sum > d) {
      cnt++;
      sum = 0;
    }
  }
  if (sum > d) {
    cnt++;
    sum = 0;
  }
  cout << cnt << endl;
  return 0;
}
