#include <bits/stdc++.h>
using namespace std;
string char_to_str(char c) {
  string tem(1, c);
  return tem;
}
using namespace std;
long long MOD = 1e9 + 7;
long long StringToInteger(string NumberAsString) {
  long long NumberAsInteger;
  stringstream ss;
  ss << NumberAsString;
  ss >> NumberAsInteger;
  return NumberAsInteger;
}
int32_t main() {
  ios::sync_with_stdio(false);
  cin.tie(NULL);
  cout.precision(16);
  long long x;
  cin >> x;
  while (x) {
    string s;
    cin >> s;
    long long l = s.length();
    long long a[l];
    for (long long i = 0; i < l; ++i) {
      a[i] = s[i] - '0';
    }
    sort(a, a + l);
    long long cc = 0;
    for (long long i = 1; i < l; ++i) {
      if (a[i] - a[i - 1] != 1) {
        cc++;
      }
    }
    if (cc != 0) {
      cout << "No" << endl;
    } else {
      cout << "Yes" << endl;
    }
    x--;
  }
  return 0;
}
