{"trustable":false,"prependHtml":"\u003cstyle type\u003d\u0027text/css\u0027\u003e\n .input, .output {\n border: 1px solid #888888;\n }\n .output {\n margin-bottom: 1em;\n position: relative;\n top: -1px;\n }\n .output pre, .input pre {\n background-color: #EFEFEF;\n line-height: 1.25em;\n margin: 0;\n padding: 0.25em;\n }\n \u003c/style\u003e\n \u003clink rel\u003d\"stylesheet\" href\u003d\"//codeforces.org/s/96598/css/problem-statement.css\" type\u003d\"text/css\" /\u003e\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 type\u003d\"text/javascript\" async src\u003d\"https://mathjax.codeforces.org/MathJax.js?config\u003dTeX-AMS_HTML-full\"\u003e\u003c/script\u003e","sections":[{"title":"","value":{"format":"HTML","content":"\u003cp\u003e博諺是一位取石頭遊戲的專家,他最喜歡跟他的朋友們一起玩取石頭遊戲了。\u003c/p\u003e\n\u003cp\u003e這回博諺的朋友們準備了新的取石頭遊戲給博諺玩,遊戲的規則如下:\u003c/p\u003e\n\u003cp\u003e博諺和他的朋友面前有兩堆石頭,分別各有\u003cb\u003ex\u003c/b\u003e顆和\u003cb\u003ey\u003c/b\u003e顆。遊戲開始時,雙方輪流從一堆石頭中拿走若干顆,至少要拿走1顆石頭,至多可以拿走整堆石頭。當一方拿到所有石頭中的最後一顆後,遊戲結束,該方獲勝。\u003c/p\u003e\n\u003cp\u003e博諺這回決定增加你獲勝的機會,決定讓你先取石頭。不過今天的你忙著寫水題大賽的題目,沒空跟他玩取石頭遊戲。請寫一支程式,代替你在取石頭遊戲中贏過不敗的博諺吧!\u003c/p\u003e"}},{"title":"INTERACTION","value":{"format":"HTML","content":"\u003cp\u003e本題為互動題。\u003c/p\u003e\n\u003cp\u003e你的程式必須先從標準輸入讀入\u003cb\u003ex\u003c/b\u003e、\u003cb\u003ey\u003c/b\u003e(0 ≤ \u003cb\u003ex\u003c/b\u003e、\u003cb\u003ey\u003c/b\u003e ≤ 10000)兩整數,分別表示第1堆和第2堆的石頭數量。\u003c/p\u003e\n\u003cp\u003e輪到你取石頭時,你必須輸出兩個整數\u003cb\u003ei\u003c/b\u003e(\u003cb\u003ei\u003c/b\u003e ∈ {1, 2})、\u003cb\u003en\u003c/b\u003e,表示你要從第\u003cb\u003ei\u003c/b\u003e堆石頭中取走\u003cb\u003en\u003c/b\u003e顆。在你取完石頭後,互動程式會以相同的格式告訴你博諺的取石頭狀況。請注意,拿走超過該堆數量的石頭可能會導致「Wrong Answer」等錯誤發生。\u003c/p\u003e\n\u003cp\u003e請在每次的輸出後清空標準輸出。在取走最後一顆石頭後,請終止你的程式。\u003c/p\u003e\n\u003cp\u003e保證一開始的石頭數量狀態存在先手的必勝策略。\u003c/p\u003e"}},{"title":"SAMPLE INPUT 1","value":{"format":"HTML","content":"\u003cpre\u003e2 1\n1 1\n\u003c/pre\u003e"}},{"title":"SAMPLE OUTPUT 1","value":{"format":"HTML","content":"\u003cpre\u003e1 1\n2 1\n\u003c/pre\u003e"}}]}