n=int(input()) for i in range(n): m=input() if len(m)==0: print("Wrong") else: shuzi=0 err=0 if not m[0].isalpha() : print("Wrong") else: if m[0].isalpha(): for j in range(1,len(m)): if m[j].isspace(): pass elif m[j].isupper()&nbs***bsp;m[j].islower()&nbs***bsp;m[j].isdigit(): if m[j].isdigit(): shuzi=1 else: err=1 break if err==1: print("Wrong") elif shuzi==1: print("Accept") else: print("Wrong") python ac