{"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\u003eA string is called \u003cspan class\u003d\"tex-font-style-it\"\u003ediverse\u003c/span\u003e if it contains consecutive (adjacent) letters of the Latin alphabet and each letter occurs exactly once. For example, the following strings are diverse: \"\u003cspan class\u003d\"tex-font-style-tt\"\u003efced\u003c/span\u003e\", \"\u003cspan class\u003d\"tex-font-style-tt\"\u003exyz\u003c/span\u003e\", \"\u003cspan class\u003d\"tex-font-style-tt\"\u003er\u003c/span\u003e\" and \"\u003cspan class\u003d\"tex-font-style-tt\"\u003edabcef\u003c/span\u003e\". The following string are \u003cspan class\u003d\"tex-font-style-bf\"\u003enot\u003c/span\u003e diverse: \"\u003cspan class\u003d\"tex-font-style-tt\"\u003eaz\u003c/span\u003e\", \"\u003cspan class\u003d\"tex-font-style-tt\"\u003eaa\u003c/span\u003e\", \"\u003cspan class\u003d\"tex-font-style-tt\"\u003ebad\u003c/span\u003e\" and \"\u003cspan class\u003d\"tex-font-style-tt\"\u003ebabc\u003c/span\u003e\". Note that the letters \u0027\u003cspan class\u003d\"tex-font-style-tt\"\u003ea\u003c/span\u003e\u0027 and \u0027\u003cspan class\u003d\"tex-font-style-tt\"\u003ez\u003c/span\u003e\u0027 are not adjacent.\u003c/p\u003e\u003cp\u003eFormally, consider positions of all letters in the string in the alphabet. These positions should form contiguous segment, i.e. they should come one by one without any gaps. And all letters in the string should be distinct (duplicates are not allowed).\u003c/p\u003e\u003cp\u003eYou are given a sequence of strings. For each string, if it is diverse, print \"\u003cspan class\u003d\"tex-font-style-tt\"\u003eYes\u003c/span\u003e\". Otherwise, print \"\u003cspan class\u003d\"tex-font-style-tt\"\u003eNo\u003c/span\u003e\".\u003c/p\u003e"}},{"title":"Input","value":{"format":"HTML","content":"\u003cp\u003eThe first line contains integer $$$n$$$ ($$$1 \\le n \\le 100$$$), denoting the number of strings to process. The following $$$n$$$ lines contains strings, one string per line. Each string contains only lowercase Latin letters, its length is between $$$1$$$ and $$$100$$$, inclusive.\u003c/p\u003e"}},{"title":"Output","value":{"format":"HTML","content":"\u003cp\u003ePrint $$$n$$$ lines, one line per a string in the input. The line should contain \"\u003cspan class\u003d\"tex-font-style-tt\"\u003eYes\u003c/span\u003e\" if the corresponding string is diverse and \"\u003cspan class\u003d\"tex-font-style-tt\"\u003eNo\u003c/span\u003e\" if the corresponding string is not diverse. You can print each letter in any case (upper or lower). For example, \"\u003cspan class\u003d\"tex-font-style-tt\"\u003eYeS\u003c/span\u003e\", \"\u003cspan class\u003d\"tex-font-style-tt\"\u003eno\u003c/span\u003e\" and \"\u003cspan class\u003d\"tex-font-style-tt\"\u003eyES\u003c/span\u003e\" are all acceptable.\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\u003e8\nfced\nxyz\nr\ndabcef\naz\naa\nbad\nbabc\n\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003eYes\nYes\nYes\nYes\nNo\nNo\nNo\nNo\n\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n"}}]}