#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, b, d;
  cin >> n >> b >> d;
  vector<int> arr;
  int tmp;
  for (int i = 0; i < n; i++) {
    cin >> tmp;
    arr.push_back(tmp);
  }
  int ans = 0;
  long long count = 0;
  for (int i = 0; i < n; i++) {
    if (arr[i] <= b) {
      count += arr[i];
      if (count > d) {
        ans++;
        count = 0;
      }
    }
  }
  cout << ans;
}
