{"trustable":true,"prependHtml":"\u003cstyle type\u003d\"text/css\"\u003e\n div.illustration {\n float: right;\n padding-left: 20px;\n }\n div.illustration .illustration {\n width: 100%;\n border-radius: 4px;\n }\n pre {\n display: block;\n margin: 0 0 10px;\n font-size: 13px;\n line-height: 1.42857143;\n color: #333;\n word-break: break-all;\n word-wrap: break-word;\n }\n\u003c/style\u003e\n\u003cscript\u003e\n window.katexOptions \u003d {\n delimiters: [\n {left: \u0027\\\\[\u0027, right: \u0027\\\\]\u0027, display: true}\n ]\n };\n\u003c/script\u003e\n","sections":[{"title":"","value":{"format":"HTML","content":"\n \u003cp\u003eStan and Ollie play the game of multiplication by\n multiplying an integer \u003cspan class\u003d\"tex2jax_process\"\u003e$p$\u003c/span\u003e\n by one of the numbers \u003cspan class\u003d\"tex2jax_process\"\u003e$2$\u003c/span\u003e\n to \u003cspan class\u003d\"tex2jax_process\"\u003e$9$\u003c/span\u003e. Stan always starts\n with \u003cspan class\u003d\"tex2jax_process\"\u003e$p \u003d 1$\u003c/span\u003e, does his\n multiplication, then Ollie multiplies the number, then Stan and\n so on. Before a game starts, they draw an integer \u003cspan class\u003d\"tex2jax_process\"\u003e$n$\u003c/span\u003e and the winner is who first\n reaches \u003cspan class\u003d\"tex2jax_process\"\u003e$p \\ge n$\u003c/span\u003e.\u003c/p\u003e\n\n \u003ch2\u003eInput\u003c/h2\u003e\n\n \u003cp\u003eEach line of input contains the integer \u003cspan class\u003d\"tex2jax_process\"\u003e$1 \u0026lt; n \u0026lt; 4\\, 294\\, 967\\, 295$\u003c/span\u003e.\n There are at most \u003cspan class\u003d\"tex2jax_process\"\u003e$30$\u003c/span\u003e\n lines of input.\u003c/p\u003e\n\n \u003ch2\u003eOutput\u003c/h2\u003e\n\n \u003cp\u003eFor each line of input output one line either\u003c/p\u003e\n \u003cpre\u003eStan wins.\n\u003c/pre\u003e\n\n \u003cp\u003eor\u003c/p\u003e\n \u003cpre\u003eOllie wins.\n\u003c/pre\u003e\n\n \u003cp\u003eassuming that both of them play perfectly.\u003c/p\u003e\n\n \u003ch2\u003eSample 1\u003c/h2\u003e\u003cbody\u003e\u003ctable class\u003d\"vjudge_sample\"\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\u003e162\n17\n34012226\n\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003eStan wins.\nOllie wins.\nStan wins.\n\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n\u003c/body\u003e\n "}}]}