#include <bits/stdc++.h>
using namespace std;
const int maxn=1e6+14;
long long n, s, pre[maxn];
void solve(){
cin >> n >> s;
pre[0] = 0;
unordered_map < long long , int > m;
for (int i = 1; i <= n; i++){
int x;
cin >> x;
pre[i] = pre[i - 1] + x;
if (m[pre[i]] == 0) m[pre[i]] = i;
}
m[0] = 0;
for (int i = 1; i <= n; i++) {
for (int j = 0; j < i; j++){
if (pre[i] - pre[j] == s){
cout << "YES" << endl << j + 1 << ".." << i ;
return ;
}
}
}
cout << "NO";
return;
}
int main(){
ios_base::sync_with_stdio(0);
cin.tie(0); cout.tie(0);
if (fopen("input.txt","r")){
freopen("input.txt","r",stdin);
freopen("output.txt","w",stdout);
}
solve();
return 0;
}
I2luY2x1ZGUgPGJpdHMvc3RkYysrLmg+CnVzaW5nIG5hbWVzcGFjZSBzdGQ7CmNvbnN0IGludCBtYXhuPTFlNisxNDsKbG9uZyBsb25nIG4sIHMsIHByZVttYXhuXTsKdm9pZCBzb2x2ZSgpewoJY2luID4+IG4gPj4gczsKCXByZVswXSA9IDA7Cgl1bm9yZGVyZWRfbWFwIDwgbG9uZyBsb25nICwgaW50ID4gbTsKCWZvciAoaW50IGkgPSAxOyBpIDw9IG47IGkrKyl7CgkJaW50IHg7CgkJY2luID4+IHg7CgkJcHJlW2ldID0gcHJlW2kgLSAxXSArIHg7CiAgICAgICAgaWYgKG1bcHJlW2ldXSA9PSAwKQltW3ByZVtpXV0gPSBpOwoJfQogICAgCiAgICBtWzBdID0gMDsKICAgIGZvciAoaW50IGkgPSAxOyBpIDw9IG47IGkrKykgewogICAgICAgIGZvciAoaW50IGogPSAwOyBqIDwgaTsgaisrKXsKICAgICAgICAgICAgaWYgKHByZVtpXSAtIHByZVtqXSA9PSBzKXsKICAgICAgICAgICAgICAgIGNvdXQgPDwgIllFUyIgPDwgZW5kbCA8PCBqICsgMSA8PCAiLi4iIDw8IGkgOwogICAgICAgICAgICAgICAgcmV0dXJuIDsKICAgICAgICAgICAgfQogICAgICAgIH0KICAgIH0KICAgIAogICAgY291dCA8PCAiTk8iOwoJcmV0dXJuOwp9CmludCBtYWluKCl7Cglpb3NfYmFzZTo6c3luY193aXRoX3N0ZGlvKDApOwoJY2luLnRpZSgwKTsgICAgY291dC50aWUoMCk7CiAgICBpZiAoZm9wZW4oImlucHV0LnR4dCIsInIiKSl7CiAgICAgICAgZnJlb3BlbigiaW5wdXQudHh0IiwiciIsc3RkaW4pOwogICAgICAgIGZyZW9wZW4oIm91dHB1dC50eHQiLCJ3IixzdGRvdXQpOwogICAgfQoJc29sdmUoKTsKCXJldHVybiAwOwp9Cg==