#include #include #include #include #include #include #include #include #include typedef vector VI; typedef vector > VVI; typedef vector VS; typedef vector > VVS; typedef signed long long i64; typedef unsigned long long u64; int iswin(int x, int y) { if( x > y ) swap(x, y); if( y%x == 0 ) return 1; if( y-x < x ) return 1-iswin( y-x, x ); return 1; } main() { int i, j, k, x, y, z, n; for(;;) { scanf( " %d %d", &x, &y ); if( x+y == 0 ) break; cout << (iswin(x, y) ? "Stan wins" : "Ollie wins") << endl; } }