Problem: A string is called diverse if it contains consecutive (adjacent) letters of the Latin alphabet and each letter occurs exactly once. For example, the following strings are diverse: "fced", "xyz", "r" and "dabcef". The following string are not diverse: "az", "aa", "bad" and "babc". Note that the letters 'a' and 'z' are not adjacent.

Formally, 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).

You are given a sequence of strings. For each string, if it is diverse, print "Yes". Otherwise, print "No".

Input

The first line contains integer n (1 ≤ n ≤ 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.

Output

Print n lines, one line per a string in the input. The line should contain "Yes" if the corresponding string is diverse and "No" if the corresponding string is not diverse. You can print each letter in any case (upper or lower). For example, "YeS", "no" and "yES" are all acceptable.

Example

Input


8
fced
xyz
r
dabcef
az
aa
bad
babc


Output


Yes
Yes
Yes
Yes
No
No
No
No

Solution (in JAVA):

Solution:
/* package whatever; // don't place package name! */
 
import java.util.*;
import java.math.BigInteger; 
import java.lang.*;
import java.io.*;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import java.lang.Math; 
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
 
/* Name of the class has to be "Main" only if the class is public. */
public class bbg
{
	public static int result;
 
public static ArrayList<Integer> [] graph;
 
public static int[]cats;
 public static String[]vector;
 
 
public static int vizitat[];
public static int x;
//public static HashMap<String, Integer> map2;
 
 
	public static void main (String[] args) throws IOException {
 
Scanner input = new Scanner(System.in);
 
HashMap<Integer, Integer> contor1= new HashMap<Integer, Integer>();
HashMap<Integer, Integer> contor2= new HashMap<Integer, Integer>();
 
 
HashMap<Integer, Integer> map= new HashMap<Integer, Integer>();
HashMap<String, Integer> litere= new HashMap<String, Integer>();
HashMap<String, Integer> combinari= new HashMap<String, Integer>();
 
 
litere.put("a",1);
litere.put("b",2);
litere.put("c",3);
litere.put("d",4);
litere.put("e",5);
litere.put("f",6);
litere.put("g",7);
litere.put("h",8);
litere.put("i",9);
litere.put("j",10);
litere.put("k",11);
litere.put("l",12);
litere.put("m",13);
litere.put("n",14);
litere.put("o",15);
litere.put("p",16);
litere.put("q",17);
litere.put("r",18);
litere.put("s",19);
litere.put("t",20);
litere.put("u",21);
litere.put("v",22);
litere.put("w",23);
litere.put("x",24);
litere.put("y",25);
litere.put("z",26);




 BigInteger numar_initial; 
 BigInteger primul; 
 BigInteger doilea;
  BigInteger produs;
  BigInteger unitatea;
  


 
int teste=input.nextInt();
for (int t=1; t<=teste;t++)
{int y=1;
//Scanner scan = new Scanner(System.in);
 // int n=input.nextInt();
 //Scanner scan = new Scanner(System.in);

//String str=input.next();


           //  StringBuilder stro  = new StringBuilder(scan.nextLine());
          //   stro  = new StringBuilder(scan.nextLine());
          //   String str=String.valueOf(stro);
             
            //  StringBuilder raspunsul    = new StringBuilder(); 
     
     
     int min=Integer.MAX_VALUE;
     int max=0-Integer.MAX_VALUE;
     
     String str=input.next();    
     
     int vec[]=new int[30];
            
for (int i=0;i<str.length();i++)
{//System.out.println(i+" " + str.substring(i,i+1));
 
 
// System.out.println(i+" " + litere.get(str.substring(i,i+1)));


min=Math.min(min,litere.get(str.substring(i,i+1)));
max=Math.max(max,litere.get(str.substring(i,i+1)));

vec[litere.get(str.substring(i,i+1))]++;
if  (vec[litere.get(str.substring(i,i+1))]>1) y=0;

}

if (max-min+1==str.length() && y==1) System.out.println("Yes");
else System.out.println("No");

// System.out.println(min);
//System.out.println(max);
}





//}
























}



  


}