#include <iostream>
using namespace std;
unsigned int n,t;
int s;
int main(){
while(cin>>n){
s=1,t=1;
while(t<n){
if(s)
t*=9;
else
t*=2;
s^=1;
}
if(!s)
cout<<"Stan wins.";
else
cout<<"Ollie wins.";
cout<<endl;
}
}
using namespace std;
unsigned int n,t;
int s;
int main(){
while(cin>>n){
s=1,t=1;
while(t<n){
if(s)
t*=9;
else
t*=2;
s^=1;
}
if(!s)
cout<<"Stan wins.";
else
cout<<"Ollie wins.";
cout<<endl;
}
}
Comments
Post a Comment