#include<iostream>
#include<vector>
#include<list>
#include<string>
using namespace std;
//========Correct
bool canWin(int a, int b)
{
if(b/a>1 || b==a) return true;
return !canWin(b-a, a);
}
//=======>!!!!
bool canWin(int a, int b)
{
if(b>=a*2 || b==a) return true;
return !canWin(b-a, a);
}
//========
int main()
{
#ifndef ONLINE_JUDGE
freopen("data.txt", "r", stdin);
#endif
int a, b;
while(scanf("%d%d", &a, &b)&& a && b)
{
if(a > b) swap(a, b);
bool stanWin=canWin(a, b);
if(stanWin)printf("Stan wins/n");
else printf("Ollie wins/n");
}
return 0;
}
范围啊, 范围啊, 注意了