#include <bits/stdc++.h>
#define ll long long
using namespace std;
ll n,x,t,ans;
ll r[100005];
int main() {
ios_base::sync_with_stdio(false);
cin>>n>>x;
t=2*x;
ans=n;
for(ll i=1;i<n;i++){
cin>>r[i];
}
for(ll i=n-1;i>=1;i--){
for(ll l=1;l<=n-i;l++){
ll sum=0;
for(ll j=1;j<=i;j++){
sum+=r[l+j];
}
cout<<"sum:"<<sum<<'\n';
if(sum<t){
break;
}
}
ans=min(ans,i);
}
cout<<ans;
return 0;
}
全WA求救