int main() { int n, k, x; cin >> n >> k >> x; vector<int> a(n); for(auto &x : a) cin >> x; int ans = 0, cur = 0; for(int i = 0; i < k - 1; i++) { cur += a[i] <= x; } for(int i = k; i < n; i++) { cur += a[i] <= x; ans = max(ans, cur); cur -= a[i - k] <= x; } cout << ans; }