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