#include <bits/stdc++.h>
using namespace std;
long long a[100001],s[100001],ans;
int main()
{
ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0);
freopen("HOANHAO.inp","r",stdin);
freopen("HOANHAO.out","w",stdout);
long long n,k;
cin>>n>>k;
for(int i=1;i<=n;i++)
{
cin>>a[i];
s[i]=s[i-1]+a[i];
}
for(int i=1;i<n;i++)
{
for(int j=i+1;j<=n;j++)
{
if(s[j]-s[i-1]>=k) ans=max(ans,(s[j]-s[i-1])/(j-i+1));
}
}
cout<<ans;
return 0;
}
I2luY2x1ZGUgPGJpdHMvc3RkYysrLmg+Cgp1c2luZyBuYW1lc3BhY2Ugc3RkOwpsb25nIGxvbmcgYVsxMDAwMDFdLHNbMTAwMDAxXSxhbnM7CmludCBtYWluKCkKewogICAgaW9zX2Jhc2U6OnN5bmNfd2l0aF9zdGRpbygwKTtjaW4udGllKDApO2NvdXQudGllKDApOwoJZnJlb3BlbigiSE9BTkhBTy5pbnAiLCJyIixzdGRpbik7CglmcmVvcGVuKCJIT0FOSEFPLm91dCIsInciLHN0ZG91dCk7CiAgICBsb25nIGxvbmcgbixrOwogICAgY2luPj5uPj5rOwogICAgZm9yKGludCBpPTE7aTw9bjtpKyspCiAgICB7CiAgICAgICAgY2luPj5hW2ldOwogICAgICAgIHNbaV09c1tpLTFdK2FbaV07CiAgICB9CiAgICBmb3IoaW50IGk9MTtpPG47aSsrKQogICAgewogICAgICAgIGZvcihpbnQgaj1pKzE7ajw9bjtqKyspCiAgICAgICAgewogICAgICAgICAgICBpZihzW2pdLXNbaS0xXT49aykgYW5zPW1heChhbnMsKHNbal0tc1tpLTFdKS8oai1pKzEpKTsKICAgICAgICB9CiAgICB9CiAgICBjb3V0PDxhbnM7CiAgICByZXR1cm4gMDsKfQo=