{"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":"\u003cdiv\u003e\n \u003cp\u003eBakhdaulet the Team Lead aka Krestnyi Otec the Coder loves to read the dictionary. He thinks that a word is \u003cspan class\u003d\"tex-font-style-it\"\u003enice\u003c/span\u003e if there exists a \u003cspan class\u003d\"tex-font-style-bf\"\u003esubstring\u003c/span\u003e (contiguous segment of letters) of it of length \u003cspan class\u003d\"tex-span\"\u003e26\u003c/span\u003e where each letter of English alphabet appears exactly once. In particular, if the string has length strictly less than \u003cspan class\u003d\"tex-span\"\u003e26\u003c/span\u003e, no such substring exists and thus it is not nice.\u003c/p\u003e\n \u003cp\u003eNow, Bakhdaulet the Coder tells you a word, where some of its letters are missing as he forgot them. He wants to determine if it is possible to fill in the missing letters so that the resulting word is nice. If it is possible, he needs you to find an example of such a word as well. Can you help him?\u003c/p\u003e\n\u003c/div\u003e"}},{"title":"Input","value":{"format":"HTML","content":"\u003cdiv class\u003d\"input-specification\"\u003e\n \u003cdiv class\u003d\"section-title\"/div\u003e\n \u003cp\u003eThe first and only line of the input contains a single string \u003cspan class\u003d\"tex-span\"\u003e\u003ci\u003es\u003c/i\u003e\u003c/span\u003e (\u003cspan class\u003d\"tex-span\"\u003e1 ≤ |\u003ci\u003es\u003c/i\u003e| ≤ 50 000\u003c/span\u003e), the word that Bakhdaulet the Coder remembers. Each character of the string is the uppercase letter of English alphabet (\u0027A\u0027-\u0027Z\u0027) or is a question mark (\u0027?\u0027), where the question marks denotes the letters that Bakhdaulet the Coder can\u0027t remember.\u003c/p\u003e\n\u003c/div\u003e"}},{"title":"Output","value":{"format":"HTML","content":"\u003cdiv class\u003d\"output-specification\"\u003e\n \u003cdiv class\u003d\"section-title\"/div\u003e\n \u003cp\u003eIf there is no way to replace all the question marks with \u003cspan class\u003d\"tex-font-style-bf\"\u003euppercase letters\u003c/span\u003e such that the resulting word is nice, then print \u003cspan class\u003d\"tex-span\"\u003e - 1\u003c/span\u003e in the only line.\u003c/p\u003e\n \u003cp\u003eOtherwise, print a string which denotes a possible nice word that Bakhdaulet the Coder learned. This string should match the string from the input, except for the question marks replaced with uppercase English letters.\u003c/p\u003e\n \u003cp\u003eIf there are multiple solutions, you may print any of them.\u003c/p\u003e\n\u003c/div\u003e"}},{"title":"Example","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\u003cdiv class\u003d\"sample-tests\"\u003e\n \u003cdiv class\u003d\"section-title\"/div\u003e\n \u003cdiv class\u003d\"sample-test\"\u003e\n \u003cdiv class\u003d\"input\"\u003e\n \u003cdiv class\u003d\"title\"\u003e\n Input\n \u003c/div\u003e\n \u003cpre\u003eABC??FGHIJK???OPQR?TUVWXY?\u003cbr\u003e\u003c/pre\u003e\n \u003c/div\u003e\n \u003cdiv class\u003d\"output\"\u003e\n \u003cdiv class\u003d\"title\"\u003e\n Output\n \u003c/div\u003e\n \u003cpre\u003eABCDEFGHIJKLMNOPQRZTUVWXYS\u003c/pre\u003e\n \u003c/div\u003e\n \u003cdiv class\u003d\"input\"\u003e\n \u003cdiv class\u003d\"title\"\u003e\n Input\n \u003c/div\u003e\n \u003cpre\u003eWELCOMETOCODEFORCESROUNDTHREEHUNDREDANDSEVENTYTWO\u003cbr\u003e\u003c/pre\u003e\n \u003c/div\u003e\n \u003cdiv class\u003d\"output\"\u003e\n \u003cdiv class\u003d\"title\"\u003e\n Output\n \u003c/div\u003e\n \u003cpre\u003e-1\u003c/pre\u003e\n \u003c/div\u003e\n \u003cdiv class\u003d\"input\"\u003e\n \u003cdiv class\u003d\"title\"\u003e\n Input\n \u003c/div\u003e\n \u003cpre\u003e??????????????????????????\u003cbr\u003e\u003c/pre\u003e\n \u003c/div\u003e\n \u003cdiv class\u003d\"output\"\u003e\n \u003cdiv class\u003d\"title\"\u003e\n Output\n \u003c/div\u003e\n \u003cpre\u003eMNBVCXZLKJHGFDSAQPWOEIRUYT\u003c/pre\u003e\n \u003c/div\u003e\n \u003cdiv class\u003d\"input\"\u003e\n \u003cdiv class\u003d\"title\"\u003e\n Input\n \u003c/div\u003e\n \u003cpre\u003eAABCDEFGHIJKLMNOPQRSTUVW??M\u003cbr\u003e\u003c/pre\u003e\n \u003c/div\u003e\n \u003cdiv class\u003d\"output\"\u003e\n \u003cdiv class\u003d\"title\"\u003e\n Output\n \u003c/div\u003e\n \u003cpre\u003e-1\u003c/pre\u003e\n \u003c/div\u003e\n \u003c/div\u003e\n\u003c/div\u003e"}},{"title":"Note","value":{"format":"HTML","content":"\u003cdiv class\u003d\"note\"\u003e\n \u003cdiv class\u003d\"section-title\"Note/div\u003e\n \u003cp\u003eIn the first sample case, \u003cspan class\u003d\"tex-font-style-tt\"\u003eABCDEFGHIJKLMNOPQRZTUVWXYS\u003c/span\u003e is a valid answer beacuse it contains a substring of length \u003cspan class\u003d\"tex-span\"\u003e26\u003c/span\u003e (the whole string in this case) which contains all the letters of the English alphabet exactly once. Note that there are many possible solutions, such as \u003cspan class\u003d\"tex-font-style-tt\"\u003eABCDEFGHIJKLMNOPQRSTUVWXYZ\u003c/span\u003e or \u003cspan class\u003d\"tex-font-style-tt\"\u003eABCEDFGHIJKLMNOPQRZTUVWXYS\u003c/span\u003e.\u003c/p\u003e\n \u003cp\u003eIn the second sample case, there are no missing letters. In addition, the given string does not have a substring of length \u003cspan class\u003d\"tex-span\"\u003e26\u003c/span\u003e that contains all the letters of the alphabet, so the answer is \u003cspan class\u003d\"tex-span\"\u003e - 1\u003c/span\u003e.\u003c/p\u003e\n \u003cp\u003eIn the third sample case, any string of length \u003cspan class\u003d\"tex-span\"\u003e26\u003c/span\u003e that contains all letters of the English alphabet fits as an answer.\u003c/p\u003e\n\u003c/div\u003e"}}]}