S=input() if S[0]==S[1]==S[2]: print('No') exit(0) if S[0]==S[1]: print('Yes') else: print('No')