{"trustable":true,"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\n\u003cscript\u003e\n window.katexOptions \u003d {\n delimiters: [\n {left: \u0027$$$$$$\u0027, right: \u0027$$$$$$\u0027, display: true},\n {left: \u0027$$$\u0027, right: \u0027$$$\u0027, display: false},\n {left: \u0027$$\u0027, right: \u0027$$\u0027, display: true},\n {left: \u0027$\u0027, right: \u0027$\u0027, display: false}\n ]\n };\n\u003c/script\u003e\n","sections":[{"title":"","value":{"format":"HTML","content":"\u003cp\u003eAshishgup 和 FastestFinger 玩一个游戏。\u003c/p\u003e\u003cp\u003e他们从一个数字 $$$n$$$ 开始轮流进行游戏。在每个回合中,玩家可以执行以下操作之一:\u003c/p\u003e\u003cul\u003e \u003cli\u003e 将 $$$n$$$ 除以大于 $$$1$$$ 的任何奇数约数。 \u003c/li\u003e\u003cli\u003e 如果 $$$n$$$ 大于 $$$1$$$,则从 $$$n$$$ 中减去 $$$1$$$。 \u003c/li\u003e\u003c/ul\u003e\u003cp\u003e一个数字的约数包括它本身。\u003c/p\u003e\u003cp\u003e无法进行移动的玩家将输掉游戏。\u003c/p\u003e\u003cp\u003eAshishgup 先手。确定游戏的赢家,假设他们都采取最佳策略。\u003c/p\u003e"}},{"title":"输入","value":{"format":"HTML","content":"\u003cp\u003e第一行包含一个整数 $$$t$$$ ($$$1 \\leq t \\leq 100$$$) \u0026nbsp;— 测试用例的数量。接下来是每个测试用例的描述。\u003c/p\u003e\u003cp\u003e每个测试用例仅包含一个整数 \u0026nbsp;— $$$n$$$ ($$$1 \\leq n \\leq 10^9$$$)。\u003c/p\u003e"}},{"title":"输出","value":{"format":"HTML","content":"\u003cp\u003e对于每个测试用例,如果 Ashishgup 赢了,则输出 \"\u003cspan class\u003d\"tex-font-style-tt\"\u003eAshishgup\u003c/span\u003e\",否则输出 \"\u003cspan class\u003d\"tex-font-style-tt\"\u003eFastestFinger\u003c/span\u003e\"(不包括引号)。\u003c/p\u003e"}},{"title":"示例","value":{"format":"HTML","content":"\u003ctable class\u003d\u0027vjudge_sample\u0027\u003e\n\u003cthead\u003e\n \u003ctr\u003e\n \u003cth\u003eInput\u003c/th\u003e\n \u003cth\u003eOutput\u003c/th\u003e\n \u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n \u003ctr\u003e\n \u003ctd\u003e\u003cpre\u003e7\n1\n2\n3\n4\n5\n6\n12\n\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003eFastestFinger\nAshishgup\nAshishgup\nFastestFinger\nAshishgup\nFastestFinger\nAshishgup\n\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e"}},{"title":"注意","value":{"format":"HTML","content":"\u003cp\u003e在第一个测试用例中,$$$n \u003d 1$$$,Ashishgup 无法进行移动。他输了。\u003c/p\u003e\u003cp\u003e在第二个测试用例中,$$$n \u003d 2$$$,Ashishgup 在第一步中减去了 $$$1$$$。现在 $$$n \u003d 1$$$,FastestFinger 无法进行移动,因此他输了。\u003c/p\u003e\u003cp\u003e在第三个测试用例中,$$$n \u003d 3$$$,Ashishgup 在第一步中除以了 $$$3$$$。现在 $$$n \u003d 1$$$,FastestFinger 无法进行移动,因此他输了。\u003c/p\u003e\u003cp\u003e在最后一个测试用例中,$$$n \u003d 12$$$,Ashishgup 将其除以 $$$3$$$。现在 $$$n \u003d 4$$$,FastestFinger 被迫减去 $$$1$$$,然后 Ashishgup 得到 $$$3$$$,所以他通过除以 $$$3$$$ 赢得了比赛。\u003c/p\u003e"}}]}