#include <bits/stdc++.h>
using namespace std;
const long long mod = 1e9 + 7;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  long long n;
  cin >> n;
  vector<long long> arr[n];
  for (long long i = 0; i < n; i++) {
    string s;
    cin >> s;
    for (long long j = 0; j < s.length(); j++)
      arr[i].push_back((long long)(s[j]));
  }
  for (long long i = 0; i < n; i++) sort(arr[i].begin(), arr[i].end());
  for (long long i = 0; i < n; i++) {
    bool flag = true;
    long long start = arr[i][0];
    for (long long j = 1; j < arr[i].size(); j++) {
      if (arr[i][j] == (start + 1))
        start = arr[i][j];
      else {
        flag = false;
        break;
      }
    }
    if (flag == false)
      cout << "No" << endl;
    else
      cout << "Yes" << endl;
  }
}
