#include "bits/stdc++.h"
#define FAST ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL)
using namespace std;
void solve(){
string s;
cin>>s;
sort(s.begin(),s.end());
for (int i = 0; i < 13; ++i)
{
if(s[i] - 'A' != i){
cout<<"NO\n";
return;
}
}
cout<<"YES\n";
}
int main(){
#ifndef ONLINE_JUDGE
freopen("input.txt", "r", stdin);
freopen("out.txt", "w",stdout);
#endif
FAST;
int t = 1;
cin>>t;
while(t--)
solve();
}