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:


import java.util.*;
import java.io.*;

public class Main {

    public static void main(String[] args) throws Exception {
        StringBuilder out = new StringBuilder();
        int n = in.nextInt();

        outer:
        while (n-- != 0) {
            String s = in.next();
            HashSet<Character> set = new HashSet<>();
            for (int i = 0; i < s.length(); i++) {
                if (set.contains(s.charAt(i))) {
                    out.append("No").append("\n");
                    continue outer;
                }
                set.add(s.charAt(i));
            }

            char a[] = s.toCharArray();
            Arrays.sort(a);

            for (int i = 0; i < s.length() - 1; i++) {
                int i1 = a[i];
                int i2 = a[i + 1];

                if (Math.abs(i1 - i2) != 1) {
                    out.append("No").append("\n");
                    continue outer;
                }
            }
            out.append("Yes").append("\n");

        }
        System.out.print(out);
    }


    static class IntegerDisjointSet extends DisjointSet<Integer> {
        public IntegerDisjointSet(int size, int start) {
            for (int i = 0; i < size; i++) {
                add(start++);
            }
        }

        public IntegerDisjointSet(int size) {
            this(size, 0);
        }
    }


    static class DisjointSet<T> {
        Map<T, T> parent;
        Map<T, Integer> rank;

        public DisjointSet() {
            parent = new HashMap<>();
            rank = new HashMap<>();
        }


        public void add(T element) {
            parent.put(element, element);
            rank.put(element, 1);
        }

        @SuppressWarnings("ConstantConditions")
        public void join(T element1, T element2) {
            T parent1 = findParent(element1);
            T parent2 = findParent(element2);

            if (rank.get(parent1) > rank.get(parent2)) {
                rank.compute(parent1, (key, oldVal) -> oldVal + rank.get(parent2));
                parent.put(parent2, parent1);
            } else {
                rank.compute(parent2, (key, oldVal) -> oldVal + rank.get(parent1));
                parent.put(parent1, parent2);
            }
            if (rank.get(parent1).equals(rank.get(parent2))) {
                rank.compute(parent2, (key, oldVal) -> oldVal + 1);
            }
        }

        private T findParent(T element) {
            T parent = this.parent.get(element);
            if (element.equals(parent)) {
                return parent;
            }
            T foundParent = findParent(parent);
            this.parent.put(element, foundParent);
            return foundParent;
        }


        public boolean sameSet(T element1, T element2) {
            T parent1 = findParent(element1);
            T parent2 = findParent(element2);
            return parent1.equals(parent2);
        }

    }


    static class Edge<T> {
        public T source;
        public T destination;
        public int weight;

        public Edge(T source, T destination) {
            this.source = source;
            this.destination = destination;
        }

        public Edge(T source, T destination, int weight) {
            this.source = source;
            this.destination = destination;
            this.weight = weight;
        }

        @Override
        public String toString() {
            return "utils.Edge{" +
                    "source=" + source +
                    ", destination=" + destination +
                    ", weight=" + weight +
                    '}';
        }
    }


    static class in {

        private static BufferedReader reader;
        private static StringTokenizer tokenizer;

        static {
            reader = new BufferedReader(
                    new InputStreamReader(System.in));
            tokenizer = new StringTokenizer(" ");
        }

        static void init(InputStream input) {
            reader = new BufferedReader(
                    new InputStreamReader(input));
            tokenizer = new StringTokenizer(" ");
        }

        static String nextLine() throws IOException {
            return reader.readLine();
        }

        static String next() throws IOException {
            while (!tokenizer.hasMoreTokens()) {
                tokenizer = new StringTokenizer(
                        reader.readLine());
            }
            return tokenizer.nextToken();
        }

        static boolean hasNext() {
            return tokenizer.hasMoreTokens();
        }

        static int nextInt() throws IOException {
            return Integer.parseInt(next());
        }

        static int nextShort() throws IOException {
            return Short.parseShort(next());
        }

        static double nextDouble() throws IOException {
            return Double.parseDouble(next());
        }

        static long nextLong() throws IOException {
            return Long.parseLong(next());
        }
    }

}