#include <bits/stdc++.h>
using namespace std;
int N, B, D, Ans, A[100010], tot;
int main() {
  scanf("%d%d%d", &N, &B, &D);
  for (int i = 1; i <= N; ++i) scanf("%d", A + i);
  for (int i = 1; i <= N; ++i) {
    if (A[i] <= B) tot += A[i];
    if (tot > D) tot = 0, ++Ans;
  }
  printf("%d", Ans);
  return 0;
}
