{"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":"\u003cdiv class\u003d\"panel_content\"\u003e\r\n\tTang and \u003cspan data-scayt_word\u003d\"Jiang\" data-scaytid\u003d\"1\"\u003eJiang\u003c/span\u003e are good friends. To decide whose treat it is for dinner, they are playing a game. Specifically, Tang and \u003cspan data-scayt_word\u003d\"Jiang\" data-scaytid\u003d\"2\"\u003eJiang\u003c/span\u003e will alternatively write numbers (integers) on a white board. Tang writes first, then \u003cspan data-scayt_word\u003d\"Jiang\" data-scaytid\u003d\"3\"\u003eJiang\u003c/span\u003e, then again Tang, etc... Moreover, assuming that the number written in the previous round is X, the next person who plays should write a number Y such that 1 \u0026lt;\u003d Y - X \u0026lt;\u003d k. The person who writes a number no smaller than N first will lose the game. Note that in the first round, Tang can write a number only within range [1, k] (both inclusive). You can assume that Tang and \u003cspan data-scayt_word\u003d\"Jiang\" data-scaytid\u003d\"4\"\u003eJiang\u003c/span\u003e will always be playing optimally, as they are both very smart students.\u003c/div\u003e\r\n\u003cdiv class\u003d\"panel_bottom\"\u003e\r\n\t\u003cspan data-scayt_word\u003d\"翻译如下:\" data-scaytid\u003d\"7\"\u003e翻译如下:\u003c/span\u003e\u003c/div\u003e\r\n\u003cdiv class\u003d\"panel_bottom\"\u003e\r\n\tTang 和 \u003cspan data-scayt_word\u003d\"Jiang是好朋友。为了决定谁支付晚餐的费用,他们决定做一个游戏。具体来说,Tang和Jiang将轮流在一个白板上写下一个整数,Tang先写,然后是Jiang\" data-scaytid\u003d\"8\"\u003eJiang是好朋友。为了决定谁支付晚餐的费用,他们决定做一个游戏。具体来说,Tang和Jiang将轮流在一个白板上写下一个整数,Tang先写,然后是Jiang\u003c/span\u003e,\u003cspan data-scayt_word\u003d\"然后再是Tang,在然后是Jiang,就像这样轮流下去。而且,我们假设上一轮的数字是X,下一个人应该写下一个数字Y、Y满足1\" data-scaytid\u003d\"9\"\u003e然后再是Tang,在然后是Jiang,就像这样轮流下去。而且,我们假设上一轮的数字是X,下一个人应该写下一个数字Y、Y满足1\u003c/span\u003e \u0026lt;\u003d Y - X \u0026lt;\u003d \u003cspan data-scayt_word\u003d\"k。当一个人最先写下一个数字,这个数字不能比N小的话、他就输掉了这场比赛。注意在第一轮的时候,Tang写下的数字只能在\" data-scaytid\u003d\"10\"\u003ek。当一个人最先写下一个数字,这个数字不能比N小的话、他就输掉了这场比赛。注意在第一轮的时候,Tang写下的数字只能在\u003c/span\u003e[1, k]\u003cspan data-scayt_word\u003d\"内(包括1和K)。你可以假设Tang和Jiang都总是做出当前最佳的选择,他们都是非常聪明的学生。\" data-scaytid\u003d\"11\"\u003e内(包括1和K)。你可以假设Tang和Jiang都总是做出当前最佳的选择,他们都是非常聪明的学生。\u003c/span\u003e\u003c/div\u003e"}},{"title":"Input","value":{"format":"HTML","content":"\u003cdiv class\u003d\"panel_content\"\u003e\r\n\tThere are multiple test cases. For each test case, there will be one line of input having two integers N (0 \u0026lt; N \u0026lt;\u003d 10^8) and k (0 \u0026lt; k \u0026lt;\u003d 100). Input terminates when both N and k are zero.\u003c/div\u003e"}},{"title":"Output","value":{"format":"HTML","content":"\u003cdiv class\u003d\"panel_content\"\u003e\r\n\tFor each case, print the winner\u0026#39;s name in a single line.\u003c/div\u003e"}},{"title":"Sample Input","value":{"format":"HTML","content":"\u003cdiv class\u003d\"panel_content\"\u003e\r\n\t\u003cpre\u003e\r\n\t\u003c/pre\u003e\r\n\t\u003cdiv style\u003d\"font-family:Courier New,Courier,monospace;\"\u003e\r\n\t\t\u003cpre\u003e\r\n\t\t1 1\r\n30 3\r\n10 2\r\n0 0 \u003c/pre\u003e\r\n\t\u003c/div\u003e\r\n\u003c/div\u003e"}},{"title":"Sample Output","value":{"format":"HTML","content":"\u003cdiv class\u003d\"panel_content\"\u003e\r\n\t\u003cpre\u003e\r\n\t\u003c/pre\u003e\r\n\t\u003cdiv style\u003d\"font-family:Courier New,Courier,monospace;\"\u003e\r\n\t\t\u003cpre\u003e\r\n\t\t\u003cspan data-scayt_word\u003d\"Jiang\" data-scaytid\u003d\"5\"\u003eJiang\u003c/span\u003e\r\nTang\r\n\u003cspan data-scayt_word\u003d\"Jiang\" data-scaytid\u003d\"6\"\u003eJiang\u003c/span\u003e \u003c/pre\u003e\r\n\t\u003c/div\u003e\r\n\u003c/div\u003e"}}]}