it=int(input()) alphabet="ABCDEFGHIJKLM" for i in range(it): a =input() a=''.join(set(a)) a= ''.join(sorted(a)) if a in alphabet: print("YES") else: print("NO")