{"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":"RioTian学长接了个外包,但是写到一半人跑去刷题了,现在剩下了个注册系统的烂摊子给你收拾\n比如要注册用户名bjfuacm,如果bjfuacm没有注册过就返回OK。反之如果bjfuacm被注册了,就给用户推荐bjfuacm1,如果bjfuacm1也被注册了就给用户推荐bjfuacm2并以此类推\n相信你肯定能帮学长收拾好这个烂摊子"}},{"title":"Input","value":{"format":"MD","content":"第一行是正整数N,表示有n个人。\n之后的n行,每行一个非空字符串,表示该用户要注册的用户名。\n用户名只有小写字母组成,并且长度不超过32\n(1\u003c\u003dn\u003c\u003d10^5)"}},{"title":"Output","value":{"format":"MD","content":"输出n行,每行一个答案表示对应的用户注册的结果。\n如果这个用户名没有被注册,就输出OK\n否则就输出系统推荐的用户名"}},{"title":"Examples","value":{"format":"MD","content":" \u003cdiv class\u003d\"input\"\u003e \n \u003cdiv class\u003d\"title\"\u003e\n Input\n \u003c/div\u003e \n \u003cpre\u003e5\u003cbr\u003eanswers\u003cbr\u003ebjfu\u003cbr\u003ebjfu\u003cbr\u003ebjfu\u003cbr\u003edragonsong\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\u003eOK\u003cbr\u003eOK\u003cbr\u003ebjfu1\u003cbr\u003ebjfu2\u003cbr\u003eOK\u003cbr\u003e\u003c/pre\u003e\n \u003c/div\u003e "}}]}