#include <iostream> #include <algorithm> using namespace std; int main() { //freopen("acm.acm","r",stdin); int _max; int _min; bool boo_s; while(cin>>_max>>_min,_max || _min) { boo_s = true; while(true) { if(_max < _min) { iter_swap(&_max,&_min); } if(_max / _min > 1) { break; } _max -= _min; iter_swap(&_max,&_min); if(_min == 0) break; boo_s = !boo_s; } if(boo_s) { cout<<"Stan wins"<<endl; } else { cout<<"Ollie wins"<<endl; } } }