{"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\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\u003eYour task is the exact same as for the \u003cspan class\u003d\"tex-font-style-it\"\u003eeasy\u003c/span\u003e version. But this time, the marmots subtract the village\u0027s population \u003cspan class\u003d\"tex-span\"\u003e\u003ci\u003eP\u003c/i\u003e\u003c/span\u003e from their random number before responding to Heidi\u0027s request.\u003c/p\u003e\u003cp\u003eAlso, there are now villages with as few as a single inhabitant, meaning that \u003cimg align\u003d\"middle\" class\u003d\"tex-formula\" src\u003d\"CDN_BASE_URL/1712a0f0f36e138e413e4dab399b2de3?v\u003d1715291713\" style\u003d\"max-width: 100.0%;max-height: 100.0%;\"\u003e.\u003c/p\u003e\u003cp\u003eCan you help Heidi find out whether a village follows a Poisson or a uniform distribution?\u003c/p\u003e"}},{"title":"Input","value":{"format":"HTML","content":"\u003cp\u003eSame as for the easy and medium versions. But remember that now \u003cspan class\u003d\"tex-span\"\u003e1 ≤ \u003ci\u003eP\u003c/i\u003e ≤ 1000\u003c/span\u003e and that the marmots may provide positive as well as negative integers.\u003c/p\u003e"}},{"title":"Output","value":{"format":"HTML","content":"\u003cp\u003eOutput one line per village, in the same order as provided in the input. The village\u0027s line shall state \u003cspan class\u003d\"tex-font-style-it\"\u003epoisson\u003c/span\u003e if the village\u0027s distribution is of the Poisson type, and \u003cspan class\u003d\"tex-font-style-it\"\u003euniform\u003c/span\u003e if the answers came from a uniform distribution.\u003c/p\u003e"}}]}