#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  int n;
  cin >> n;
  string s[n];
  vector<int> c;
  int a[n];
  for (int i = 0; i < n; i++) a[i] = 1;
  for (int i = 0; i < n; i++) {
    cin >> s[i];
    for (int j = 0; j < s[i].size(); j++) c.push_back(int(s[i][j]));
    sort(c.begin(), c.end());
    for (int j = 0; j < c.size() - 1; j++) {
      if ((c[j + 1] - c[j]) > 1 || (c[j + 1] - c[j] == 0)) {
        a[i] = 0;
        break;
      }
    }
    c.clear();
  }
  for (int i = 0; i < n; i++) {
    if (a[i] == 1)
      cout << "Yes" << endl;
    else
      cout << "No" << endl;
  }
  return 0;
}
