{"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\u003eThe author of this problem hopes that you already know the pig called Benny.\u003c/p\u003e\u003cp\u003eRecently she started learning numbers. The first type of numbers she has learnt are primes, i.e. positive integers with exactly two divisors. First few primes are \u003cspan class\u003d\"tex-span\"\u003e2\u003c/span\u003e, \u003cspan class\u003d\"tex-span\"\u003e3\u003c/span\u003e, \u003cspan class\u003d\"tex-span\"\u003e5\u003c/span\u003e, \u003cspan class\u003d\"tex-span\"\u003e7\u003c/span\u003e and \u003cspan class\u003d\"tex-span\"\u003e11\u003c/span\u003e.\u003c/p\u003e\u003cp\u003eAs a homework Benny was given two primes \u003cspan class\u003d\"tex-span\"\u003e\u003ci\u003ea\u003c/i\u003e\u003c/span\u003e and \u003cspan class\u003d\"tex-span\"\u003e\u003ci\u003eb\u003c/i\u003e\u003c/span\u003e. She has to transform \u003cspan class\u003d\"tex-span\"\u003e\u003ci\u003ea\u003c/i\u003e\u003c/span\u003e into \u003cspan class\u003d\"tex-span\"\u003e\u003ci\u003eb\u003c/i\u003e\u003c/span\u003e using addition and subtraction.\u003c/p\u003e\u003cp\u003eSince Benny knows only primes, she might add and subtract only primes. Moreover, all the partial results also have to be primes.\u003c/p\u003e\u003cp\u003eOne move is either adding or subtracting a prime to/from the current number. A way of transforming \u003cspan class\u003d\"tex-span\"\u003e\u003ci\u003ea\u003c/i\u003e\u003c/span\u003e into \u003cspan class\u003d\"tex-span\"\u003e\u003ci\u003eb\u003c/i\u003e\u003c/span\u003e is called \u003cspan class\u003d\"tex-font-style-it\"\u003eoptimal\u003c/span\u003e if it doesn\u0027t use more moves than any other way. Your task is to find the only optimal way, if exactly one exists.\u003c/p\u003e\u003cp\u003eIf it\u0027s impossible to transform \u003cspan class\u003d\"tex-span\"\u003e\u003ci\u003ea\u003c/i\u003e\u003c/span\u003e into \u003cspan class\u003d\"tex-span\"\u003e\u003ci\u003eb\u003c/i\u003e\u003c/span\u003e, print \u003cspan class\u003d\"tex-font-style-tt\"\u003e\"Unlucky Benny\"\u003c/span\u003e (without the quotes). If there are multiple optimal ways, print \u003cspan class\u003d\"tex-font-style-tt\"\u003e\"Poor Benny\"\u003c/span\u003e (without the quotes). Otherwise output the transformation with all partial results. See the output format below.\u003c/p\u003e"}},{"title":"Input","value":{"format":"HTML","content":"\u003cp\u003eThe only line of the input contains two integers \u003cspan class\u003d\"tex-span\"\u003e\u003ci\u003ea\u003c/i\u003e\u003c/span\u003e and \u003cspan class\u003d\"tex-span\"\u003e\u003ci\u003eb\u003c/i\u003e\u003c/span\u003e (\u003cspan class\u003d\"tex-span\"\u003e2 ≤ \u003ci\u003ea\u003c/i\u003e \u0026lt; \u003ci\u003eb\u003c/i\u003e ≤ 10\u003csup class\u003d\"upper-index\"\u003e15\u003c/sup\u003e\u003c/span\u003e). Both \u003cspan class\u003d\"tex-span\"\u003e\u003ci\u003ea\u003c/i\u003e\u003c/span\u003e and \u003cspan class\u003d\"tex-span\"\u003e\u003ci\u003eb\u003c/i\u003e\u003c/span\u003e are primes.\u003c/p\u003e"}},{"title":"Output","value":{"format":"HTML","content":"\u003cp\u003eIf the transformation is impossible, print \u003cspan class\u003d\"tex-font-style-tt\"\u003e\"Unlucky Benny\"\u003c/span\u003e.\u003c/p\u003e\u003cp\u003eIf there are many optimal ways, print \u003cspan class\u003d\"tex-font-style-tt\"\u003e\"Poor Benny\"\u003c/span\u003e.\u003c/p\u003e\u003cp\u003eIf there is exactly one optimal way to transform \u003cspan class\u003d\"tex-span\"\u003e\u003ci\u003ea\u003c/i\u003e\u003c/span\u003e into \u003cspan class\u003d\"tex-span\"\u003e\u003ci\u003eb\u003c/i\u003e\u003c/span\u003e, describe the process in the following format. Let \u003cspan class\u003d\"tex-span\"\u003e\u003ci\u003ex\u003c/i\u003e\u003csub class\u003d\"lower-index\"\u003e1\u003c/sub\u003e, \u003ci\u003ex\u003c/i\u003e\u003csub class\u003d\"lower-index\"\u003e2\u003c/sub\u003e, ..., \u003ci\u003ex\u003c/i\u003e\u003csub class\u003d\"lower-index\"\u003e\u003ci\u003ek\u003c/i\u003e\u003c/sub\u003e\u003c/span\u003e denote values of Benny\u0027s number in the order. So \u003cspan class\u003d\"tex-span\"\u003e\u003ci\u003ex\u003c/i\u003e\u003csub class\u003d\"lower-index\"\u003e1\u003c/sub\u003e \u003d \u003ci\u003ea\u003c/i\u003e\u003c/span\u003e, \u003cspan class\u003d\"tex-span\"\u003e\u003ci\u003ex\u003c/i\u003e\u003csub class\u003d\"lower-index\"\u003e\u003ci\u003ek\u003c/i\u003e\u003c/sub\u003e \u003d \u003ci\u003eb\u003c/i\u003e\u003c/span\u003e and Benny changes \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 to \u003cspan class\u003d\"tex-span\"\u003e\u003ci\u003ex\u003c/i\u003e\u003csub class\u003d\"lower-index\"\u003e\u003ci\u003ei\u003c/i\u003e + 1\u003c/sub\u003e\u003c/span\u003e in the \u003cspan class\u003d\"tex-span\"\u003e\u003ci\u003ei\u003c/i\u003e\u003c/span\u003e-th move. In a single line print \u003cspan class\u003d\"tex-span\"\u003e\u003ci\u003ek\u003c/i\u003e\u003c/span\u003e numbers separated with two characters \u003cspan class\u003d\"tex-font-style-tt\"\u003e\"-\u0026gt;\"\u003c/span\u003e, without the quotes and spaces.\u003c/p\u003e"}},{"title":"Examples","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\u003e5 7\n\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003e5-\u0026gt;7\n\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n"}},{"title":"Note","value":{"format":"HTML","content":"\u003cp\u003eOne move is enough in the sample.\u003c/p\u003e\u003cp\u003eIf the only optimal way was to change \u003cspan class\u003d\"tex-span\"\u003e5\u003c/span\u003e to \u003cspan class\u003d\"tex-span\"\u003e20\u003c/span\u003e, then change \u003cspan class\u003d\"tex-span\"\u003e20\u003c/span\u003e to \u003cspan class\u003d\"tex-span\"\u003e10\u003c/span\u003e, and then finally change \u003cspan class\u003d\"tex-span\"\u003e10\u003c/span\u003e to \u003cspan class\u003d\"tex-span\"\u003e7\u003c/span\u003e, the output would be \u003cspan class\u003d\"tex-font-style-tt\"\u003e5-\u0026gt;20-\u0026gt;10-\u0026gt;7\u003c/span\u003e. Though, such a way is not only non-optimal but also it isn\u0027t valid. In the first move (from \u003cspan class\u003d\"tex-span\"\u003e5\u003c/span\u003e to \u003cspan class\u003d\"tex-span\"\u003e20\u003c/span\u003e) we try to add \u003cspan class\u003d\"tex-span\"\u003e15\u003c/span\u003e what is not prime. Also, a new number \u003cspan class\u003d\"tex-span\"\u003e20\u003c/span\u003e isn\u0027t prime. This note is only to show you the correct format.\u003c/p\u003e"}}]}