#include <bits/stdc++.h>
using namespace std;
int main(){
float N, X, a, s=1, d=0;
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+CnVzaW5nIG5hbWVzcGFjZSBzdGQ7CgppbnQgbWFpbigpewogIGZsb2F0IE4sIFgsIGEsIHM9MSwgZD0wOwogIGNpbj4+Tj4+WDsKICBmb3IoaW50IGk9MDsgaTxOOyBpKyspewogICAgY2luPj5hOwogICAgZD0oYS8xMDAuMCkrZDsKICAgIGlmKGQ+YSl7CiAgICAgIHM9KGQvYSkrczsKICAgICAgZD1yb3VuZChkKS1hOwogICAgICBjb3V0PDxkPDwiICI7CiAgICB9CiAgfQogIGlmKChzKmEpK2Q+WCl7CiAgICBjb3V0PDwic3RvbmtzIjsKICB9CiAgZWxzZXsKICAgIGNvdXQ8PCJub3Qgc3RvbmtzIjsKICB9CiAgY291dDw8czw8IiAiPDxyb3VuZChkKTsKfQ==