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