#include<iostream>
using namespace std;

int main() {
	int turn =1;
	long double n;
	while(cin>>n) {
		while(1) {
			n /= turn%2 == 1 ? 9.0 : 2.0;
			turn++;
			if(n <= 1) break;
		}
		switch(turn %2) {
			case 0:
				cout<<"Stan wins."<<endl;
				break;
			case 1:
				cout<<"Ollie wins."<<endl;
				break;
		}
		turn =1;
	}
}
Retrieved from http://wiki.zeropage.org/wiki.php/A_Multiplication_Game/곽병학
last modified 2021-02-07 05:22:23