#include <bits/stdc++.h>
using namespace std;
int main(){
int N, X, a, s=1;
float d;
cin>>N>>X;
for(int i=0; i<N; i++){
cin>>a;
d=(a/100.0)+d;
if(d>a){
s=(d/a)+s;
d=round(d)-a;
cout<<d<<" ";
}
}
if((s*a)+d>X){
cout<<"stonks";
}
else{
cout<<"not stonks";
}
cout<<s<<" "<<round(d);
}
I2luY2x1ZGUgPGJpdHMvc3RkYysrLmg+CnVzaW5nIG5hbWVzcGFjZSBzdGQ7CgppbnQgbWFpbigpewogIGludCBOLCBYLCBhLCBzPTE7CiAgZmxvYXQgZDsKICBjaW4+Pk4+Plg7CiAgZm9yKGludCBpPTA7IGk8TjsgaSsrKXsKICAgIGNpbj4+YTsKICAgIGQ9KGEvMTAwLjApK2Q7CiAgICBpZihkPmEpewogICAgICBzPShkL2EpK3M7CiAgICAgIGQ9cm91bmQoZCktYTsKICAgICAgY291dDw8ZDw8IiAiOwogICAgfQogIH0KICBpZigocyphKStkPlgpewogICAgY291dDw8InN0b25rcyI7CiAgfQogIGVsc2V7CiAgICBjb3V0PDwibm90IHN0b25rcyI7CiAgfQogIGNvdXQ8PHM8PCIgIjw8cm91bmQoZCk7Cn0=