{"trustable":false,"prependHtml":"\u003cscript\u003e window.katexOptions \u003d { disable: true }; \u003c/script\u003e\n\u003cscript type\u003d\"text/x-mathjax-config\"\u003e\n MathJax.Hub.Config({\n tex2jax: {\n inlineMath: [[\u0027$$$\u0027,\u0027$$$\u0027], [\u0027$\u0027,\u0027$\u0027]],\n displayMath: [[\u0027$$$$$$\u0027,\u0027$$$$$$\u0027], [\u0027$$\u0027,\u0027$$\u0027]]\n }\n });\n\u003c/script\u003e\n\u003cscript async src\u003d\"https://mathjax.codeforces.org/MathJax.js?config\u003dTeX-AMS-MML_HTMLorMML\" type\u003d\"text/javascript\"\u003e\u003c/script\u003e","sections":[{"title":"","value":{"format":"HTML","content":"有两个玩家,Stan 和 Ollie, 在玩游戏。初始有两个自然数。Stan是先手,每次把大的数字减去小的数字的任意倍数,但是不能使数字变成负数。然后Ollie进行同样的操作,直到有一个玩家使一个数字变为零。\u003cbr\u003e例如,初始时数字为(25,7):\u003cbr\u003e\n25 7\u003cbr\u003e\n11 7\u003cbr\u003e\n4 7\u003cbr\u003e\n4 3\u003cbr\u003e\n1 3\u003cbr\u003e\n1 0\u003cbr\u003e\n这样Stan赢"}},{"title":"Input","value":{"format":"HTML","content":"输入数据包含多行,每行两个正整数"}},{"title":"Output","value":{"format":"HTML","content":"对于每组数据,加入先手赢,输出Stan wins,否则输出Ollie wins。最后一行为0 0,这一行不要处理"}},{"title":"Sample Input","value":{"format":"HTML","content":"\u003cpre\u003e34 12\n15 24\n0 0\u003c/pre\u003e"}},{"title":"Sample Output","value":{"format":"HTML","content":"\u003cpre\u003eStan wins\nOllie wins\u003c/pre\u003e"}},{"title":"Hint","value":{"format":"HTML","content":""}}]}