{"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":"\u003cstyle type\u003d\u0027text/css\u0027\u003e .input, .output {border: 1px solid #888888;} .output {margin-bottom:1em;position:relative;top:-1px;} .output pre,.input pre {background-color:#EFEFEF;line-height:1.25em;margin:0;padding:0.25em;} .title {background-color:#FFFFFF;border-bottom: 1px solid #888888;font-family:arial;font-weight:bold;padding:0.25em;} \u003c/style\u003e \u003cscript type\u003d\"text/x-mathjax-config\"\u003e\n MathJax.Hub.Config({\n tex2jax: {inlineMath: [[\u0027$$$\u0027,\u0027$$$\u0027]], displayMath: [[\u0027$$$$$$\u0027,\u0027$$$$$$\u0027]]}\n });\n \u003c/script\u003e\n \u003cscript type\u003d\"text/javascript\" async\n src\u003d\"https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config\u003dTeX-AMS-MML_HTMLorMML\"\u003e\n \u003c/script\u003e\n\u003cp\u003eGollum, during his long life in the Misty Mountains, eventually had to find a way to amuse himself which did not involve the Ring. He thus shifted his sights to the integers.\u003c/p\u003e\n\u003cp\u003eGollum considers a positive integer \u003ci\u003eprecious\u003c/i\u003e if it has exactly 3 distinct divisors. For example, 4 is \u003ci\u003eprecious\u003c/i\u003e because its divisors are 1, 2 and 4 only; while 6 is not, since its divisors are 1, 2, 3, and 6.\u003c/p\u003e\n\u003cp\u003eGiven \u003cspan class\u003d\"tex-span\"\u003e\u003ci\u003en\u003c/i\u003e\u003c/span\u003e positive integers, which of them are \u003ci\u003eprecious\u003c/i\u003e?\u003c/p\u003e"}},{"title":"Input","value":{"format":"HTML","content":"\u003cp\u003eThe first line contains a single positive integer, \u003cspan class\u003d\"tex-span\"\u003e\u003ci\u003en\u003c/i\u003e\u003c/span\u003e (\u003cspan class\u003d\"tex-span\"\u003e1 ≤ \u003ci\u003en\u003c/i\u003e ≤ 10\u003csup class\u003d\"upper-index\"\u003e5\u003c/sup\u003e\u003c/span\u003e) - the number of positive integers Gollum wonders about.\u003c/p\u003e\n\u003cp\u003eThe next line contains \u003cspan class\u003d\"tex-span\"\u003e\u003ci\u003en\u003c/i\u003e\u003c/span\u003e space-separated positive integers \u003cspan class\u003d\"tex-span\"\u003e\u003ci\u003ex\u003c/i\u003e\u003csub class\u003d\"lower-index\"\u003e\u003ci\u003ei\u003c/i\u003e\u003c/sub\u003e\u003c/span\u003e (\u003cspan class\u003d\"tex-span\"\u003e1 ≤ \u003ci\u003ex\u003c/i\u003e\u003csub class\u003d\"lower-index\"\u003e\u003ci\u003ei\u003c/i\u003e\u003c/sub\u003e ≤ 10\u003csup class\u003d\"upper-index\"\u003e12\u003c/sup\u003e\u003c/span\u003e).\u003c/p\u003e\n\u003cp\u003eNote that the input and output use large enough integers that a simple int might not be able to hold them. To get over this, use long long int in C++ (the printf/scanf specifier is %I64d. Alternatively, use cin/cout), and Long Int in Java.\u003c/p\u003e"}},{"title":"Output","value":{"format":"HTML","content":"\u003cp\u003ePrint \u003cspan class\u003d\"tex-span\"\u003e\u003ci\u003en\u003c/i\u003e\u003c/span\u003e lines: the \u003cspan class\u003d\"tex-span\"\u003e\u003ci\u003ei\u003c/i\u003e\u003c/span\u003e-th line should contain \"\u003cspan class\u003d\"tex-font-style-tt\"\u003eYES\u003c/span\u003e\" (without the quotes) if \u003cspan class\u003d\"tex-span\"\u003e\u003ci\u003ex\u003c/i\u003e\u003csub class\u003d\"lower-index\"\u003e\u003ci\u003ei\u003c/i\u003e\u003c/sub\u003e\u003c/span\u003e is \u003ci\u003eprecious\u003c/i\u003e, and \"\u003cspan class\u003d\"tex-font-style-tt\"\u003eNO\u003c/span\u003e\" (without the quotes), if it isn\u0027t.\u003c/p\u003e"}},{"title":"Examples","value":{"format":"HTML","content":"Sample Input \u003cbr\u003e\n4 \u003cbr\u003e\n2 4 6 9 \u003cbr\u003e\n\u003cbr\u003e\nSample Output \u003cbr\u003e\nNO \u003cbr\u003e\nYES \u003cbr\u003e\nNO \u003cbr\u003e\nYES \u003cbr\u003e"}},{"title":"Explanation","value":{"format":"HTML","content":"\u003cp\u003eThe divisors of 2 are 1 and 2, hence it is not \u003ci\u003eprecious\u003c/i\u003e.\u003c/p\u003e\n\u003cp\u003eThe divisors of 4 are 1, 2 and 4, hence it is \u003ci\u003eprecious\u003c/i\u003e.\u003c/p\u003e\n\u003cp\u003eThe divisors of 6 are 1, 2, 3 and 6, hence it is not \u003ci\u003eprecious\u003c/i\u003e.\u003c/p\u003e\n\u003cp\u003eThe divisors of 9 are 1, 3 and 9, hence it is \u003ci\u003eprecious\u003c/i\u003e.\u003c/p\u003e"}}]}