{"trustable":true,"prependHtml":"\u003cstyle type\u003d\"text/css\"\u003e\n section pre {\n display: block;\n padding: 9.5px;\n margin: 0 0 10px;\n font-size: 13px;\n line-height: 1.42857143;\n word-break: break-all;\n word-wrap: break-word;\n color: #333;\n background: rgba(255, 255, 255, 0.5);\n border: 1px solid #ccc;\n border-radius: 6px;\n }\n\u003c/style\u003e\n\u003cscript\u003e\n window.katexOptions \u003d {\n delimiters: [\n {left: \u0027\\\\(\u0027, right: \u0027\\\\)\u0027, display: false},\n {left: \u0027\\\\[\u0027, right: \u0027\\\\]\u0027, display: true}\n ]\n };\n\u003c/script\u003e\n","sections":[{"title":"Problem Statement","value":{"format":"HTML","content":"\r\n\u003csection\u003e\r\n\u003cp\u003eE869120 found a chest which is likely to contain treasure.\u003cbr\u003e\r\nHowever, the chest is locked. In order to open it, he needs to enter a string \u003cvar\u003e\\(S\\)\u003c/var\u003e consisting of lowercase English letters.\u003cbr\u003e\r\nHe also found a string \u003cvar\u003e\\(S\u0027\\)\u003c/var\u003e, which turns out to be the string \u003cvar\u003e\\(S\\)\u003c/var\u003e with some of its letters (possibly all or none) replaced with \u003ccode\u003e?\u003c/code\u003e. \u003c/p\u003e\r\n\u003cp\u003eOne more thing he found is a sheet of paper with the following facts written on it: \u003c/p\u003e\r\n\u003cul\u003e\r\n\u003cli\u003eCondition 1: The string \u003cvar\u003e\\(S\\)\u003c/var\u003e contains a string \u003cvar\u003e\\(T\\)\u003c/var\u003e as a contiguous substring.\u003c/li\u003e\r\n\u003cli\u003eCondition 2: \u003cvar\u003e\\(S\\)\u003c/var\u003e is the lexicographically smallest string among the ones that satisfy Condition 1.\u003c/li\u003e\r\n\u003c/ul\u003e\r\n\u003cp\u003ePrint the string \u003cvar\u003e\\(S\\)\u003c/var\u003e.\u003cbr\u003e\r\nIf such a string does not exist, print \u003ccode\u003eUNRESTORABLE\u003c/code\u003e. \u003c/p\u003e\r\n\u003c/section\u003e\r\n"}},{"title":"Constraints","value":{"format":"HTML","content":"\r\n\u003csection\u003e\r\n\u003cul\u003e\r\n\u003cli\u003e\u003cvar\u003e\\(1 \\leq |S\u0027|, |T| \\leq 50\\)\u003c/var\u003e\u003c/li\u003e\r\n\u003cli\u003e\u003cvar\u003e\\(S\u0027\\)\u003c/var\u003e consists of lowercase English letters and \u003ccode\u003e?\u003c/code\u003e.\u003c/li\u003e\r\n\u003cli\u003e\u003cvar\u003e\\(T\\)\u003c/var\u003e consists of lowercase English letters.\u003c/li\u003e\r\n\u003c/ul\u003e\r\n\u003c/section\u003e\r\n"}},{"title":"Input","value":{"format":"HTML","content":"\r\n\u003csection\u003e\r\n\u003cp\u003eInput is given from Standard Input in the following format:\u003c/p\u003e\r\n\u003cpre\u003e\u003cvar\u003e\\(S\\)\u003c/var\u003e\r\n\u003cvar\u003e\\(T\u0027\\)\u003c/var\u003e\r\n\u003c/pre\u003e\r\n\r\n\u003c/section\u003e\r\n"}},{"title":"Output","value":{"format":"HTML","content":"\r\n\u003csection\u003e\r\n\u003cp\u003ePrint the string \u003cvar\u003e\\(S\\)\u003c/var\u003e.\u003cbr\u003e\r\nIf such a string does not exist, print \u003ccode\u003eUNRESTORABLE\u003c/code\u003e instead. \u003c/p\u003e\r\n\u003c/section\u003e\r\n"}},{"title":"Sample 1","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\u003e?tc????\r\ncoder\r\n\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003eatcoder\r\n\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n\r\n\u003csection\u003e\r\n\r\n\r\n\u003c/section\u003e\r\n\r\n\u003csection\u003e\r\n\r\n\r\n\u003cp\u003eThere are \u003cvar\u003e\\(26\\)\u003c/var\u003e strings that satisfy Condition 1: \u003ccode\u003eatcoder\u003c/code\u003e, \u003ccode\u003ebtcoder\u003c/code\u003e, \u003ccode\u003ectcoder\u003c/code\u003e,..., \u003ccode\u003eztcoder\u003c/code\u003e.\r\nAmong them, the lexicographically smallest is \u003ccode\u003eatcoder\u003c/code\u003e, so we can say \u003cvar\u003e\\(S \u003d \\)\u003c/var\u003e\u003ccode\u003eatcoder\u003c/code\u003e.\u003c/p\u003e\r\n\u003c/section\u003e\r\n"}},{"title":"Sample 2","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\u003e??p??d??\r\nabc\r\n\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003eUNRESTORABLE\r\n\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n\r\n\u003csection\u003e\r\n\r\n\r\n\u003c/section\u003e\r\n\r\n\u003csection\u003e\r\n\r\n\r\n\u003cp\u003eThere is no string that satisfies Condition 1, so the string \u003cvar\u003e\\(S\\)\u003c/var\u003e does not exist.\u003c/p\u003e\u003c/section\u003e\r\n"}}]}