#include <bits/stdc++.h>
using namespace std;
class game
{
int m, n;
bool play( div_t d )
{
if ( d.rem == 0 or d.quot > 1 )
return false;
n = m, m = d.rem;
return true;
}
public:
bool new_game()
{
cin >> m >> n;
if ( m > n )
swap( m, n );
return m > 0;
}
void solve()
{
int p = 0; const string winner[] = { "Stan", "Ollie" };
while( play( div( n, m ) ) )
p ^= 1;
cout << winner[ p ] << ' ' << "wins" << '\n';
}
};
int main()
{
ios_base::sync_with_stdio( 0 ), cin.tie( 0 ), cout.tie( 0 );
for( game g; g.new_game(); g.solve() );
}
I2luY2x1ZGUgPGJpdHMvc3RkYysrLmg+Cgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKY2xhc3MgZ2FtZQp7CiAgICBpbnQgbSwgbjsKCiAgICBib29sIHBsYXkoIGRpdl90IGQgKQogICAgewogICAgICAgIGlmICggZC5yZW0gPT0gMCBvciBkLnF1b3QgPiAxICkKICAgICAgICAgICAgcmV0dXJuIGZhbHNlOwoKICAgICAgICBuID0gbSwgbSA9IGQucmVtOwoKICAgICAgICByZXR1cm4gdHJ1ZTsKICAgIH0KCnB1YmxpYzoKCiAgICBib29sIG5ld19nYW1lKCkKICAgIHsKICAgICAgICBjaW4gPj4gbSA+PiBuOwoKICAgICAgICBpZiAoIG0gPiBuICkKICAgICAgICAgICAgc3dhcCggbSwgbiApOwoKICAgICAgICByZXR1cm4gbSA+IDA7CiAgICB9CgogICAgdm9pZCBzb2x2ZSgpCiAgICB7CiAgICAgICAgaW50IHAgPSAwOyBjb25zdCBzdHJpbmcgd2lubmVyW10gPSB7ICJTdGFuIiwgIk9sbGllIiB9OwoKICAgICAgICB3aGlsZSggcGxheSggZGl2KCBuLCBtICkgKSApCiAgICAgICAgICAgIHAgXj0gMTsKCiAgICAgICAgY291dCA8PCB3aW5uZXJbIHAgXSA8PCAnICcgPDwgIndpbnMiIDw8ICdcbic7CiAgICB9Cn07CgppbnQgbWFpbigpCnsKICAgIGlvc19iYXNlOjpzeW5jX3dpdGhfc3RkaW8oIDAgKSwgY2luLnRpZSggMCApLCBjb3V0LnRpZSggMCApOwoKICAgIGZvciggZ2FtZSBnOyBnLm5ld19nYW1lKCk7IGcuc29sdmUoKSApOwp9Cg==