A = str(input()) S = f"{A}" if S[0] == S[1]: if S[1] == S[2]: print("No") else: print("Yes") else: print("No")