#include <iostream>
#include <stdio.h>
#include <math.h>
using namespace std;
int
main()
{
long long int n;
while(cin>>n){
while(1){
if(n<=9&&n>=2){
cout<<"Stan wins."<<endl;
break;
}
if(n<2){
cout<<"Ollie wins."<<endl;
break;
}
n=ceil(n/18.0);
}
}
return 0;
}
转载于:https://my.oschina.net/dianpaopao/blog/118972