{"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":"MD","content":"在湖工大散步时,细心的磊哥在一个蓝胖子的口袋里发现了一个神奇的装置,这个装置有两个投入口,分别能投入两个字符串,磊哥给这两个字符串命名为*x*和*y*。装置上写着“扔进**两个长度相同**的**全小写英文字母**字符串试试呀,给你个惊喜哦!”\n\n磊哥发现,这个神奇的装置能自动吐出一个长度相同的字符串,并且这个字符串中第*i*个字符等于投入的*x*的第*i*个字符和*y*的第*i*个字符的最小值。\n\n磊哥投入了两组字符串:\n第一次:*x*\u003d\"ab\",*y*\u003d\"ba\",装置吐出来了个\"aa\"。\n第二次:*x*\u003d\"fpwzl\",*y*\u003d\"pgxdz\",装置吐出来了个\"fgwdl\"。\n\n细心的磊哥想知道,能不能找到这样一个字符串*z*,当投入*x*和*z*时,能够让装置吐出来*y*。\n\n如果能找到请把这个字符串输出,找不到的话输出-1。\n\n答案不唯一,输出其中一组即可。"}},{"title":"Input","value":{"format":"MD","content":"输入的第一行包含字符串*x*。\n\n输入的第二行包含字符串*y*。\n\n*x*和*y*仅由小写英文字母组成,*x*和*y*的长度相同,且长度在1到100之间。"}},{"title":"Output","value":{"format":"MD","content":"如果没有这样的*z*存在,输出-1。\n\n否则,输出字符串*z*"}},{"title":"Sample 1","value":{"format":"MD","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\u003eab\naa\n\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003eba\n\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n"}},{"title":"Sample 2","value":{"format":"MD","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\u003enzwzl\nniwel\n\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003exiyez\n\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n"}},{"title":"Sample 3","value":{"format":"MD","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\u003eab\nba\n\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003e-1\n\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n"}}]}