Problem:
 Score : 100 points    Problem Statement In AtCoder City, there are three stations numbered 1 , 2 , and 3 .  Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is A , Company A operates Station i ; if S_i is B , Company B operates Station i .  To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them.  Determine if there is a pair of stations that will be connected by a bus service.      Constraints  Each character of S is A or B .  |S| = 3         Input Input is given from Standard Input in the following format:  S       Output If there is a pair of stations that will be connected by a bus service, print Yes ; otherwise, print No .        Sample Input 1 ABA      Sample Output 1 Yes  Company A operates Station 1 and 3 , while Company B operates Station 2 .  There will be a bus service between Station 1 and 2 , and between Station 2 and 3 , so print Yes .       Sample Input 2 BBA      Sample Output 2 Yes  Company B operates Station 1 and 2 , while Company A operates Station 3 .  There will be a bus service between Station 1 and 3 , and between Station 2 and 3 , so print Yes .       Sample Input 3 BBB      Sample Output 3 No  Company B operates all the stations. Thus, there will be no bus service, so print No .

Solution (Python):
s = input()
if len(set(s)) == 1:
	print("No")
else:
	print("Yes")

Solution (Python):
S = input()

if S[0] == S[1] and S[1] == S[2]:
    print("No")
else:
    print("Yes")

Solution (Python):
s=input()
if("A" in s and "B" in s):
  print("Yes")
else:
  print("No")

Solution (Python):
S = input()

if S == 'AAA' or S == 'BBB':
    print('No')
else:
    print('Yes')

Solution (Python):
S = input()

if len(set(S)) == 1:
    print("No")
else:
    print("Yes")

Solution (Python):
def main():
    S = input()
    d = set()
    for s in S:
        d.add(s)

    if len(d) == 1:
        print('No')
    else:
        print('Yes')
    

main()

Solution (Python):
check=str(input())
if check=="AAA" or check=="BBB":
    print("No")
else:
    print("Yes")

Solution (Python):
N=[s for s in input()]
if 'A' in N and 'B' in N:
    print('Yes')
else:
    print('No')

Solution (Python):
S = list(input())

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

Solution (Python):
s = input()

if s[0]==s[1]==s[2]:
  print("No")
else:
  print("Yes")

Solution (Python):
s = list(input())
ans = "Yes" if len(set(s)) == 2 else "No"
print(ans)

Solution (Python):
N = input()
if (N == "AAA") or (N == "BBB"):
  print('No')
else:
  print('Yes')

Solution (Python):
s = input()
if s.count("A") == 0 or s.count("B")==0:
    print("No")
else:
    print("Yes")

Solution (Python):
import sys
import re
from collections import deque, defaultdict, Counter
from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians
from itertools import accumulate, permutations, combinations, product
from operator import itemgetter, mul
from copy import deepcopy
from string import ascii_lowercase, ascii_uppercase, digits
from bisect import bisect, bisect_left
from fractions import gcd
from heapq import heappush, heappop
from functools import reduce
def input(): return sys.stdin.readline().strip()
def INT(): return int(input())
def MAP(): return map(int, input().split())
def LIST(): return list(map(str, input().split()))
sys.setrecursionlimit(10 ** 9)
INF = float('inf')
mod = 10 ** 9 + 7

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

Solution (Python):
s = input()
if 'A' in s and 'B' in s: print("Yes")
else: print("No")

Solution (Python):
S=input()

if S=='AAA' or S=='BBB':
    print('No')
else:
    print('Yes')

Solution (Python):



def main():
  s = list(input().strip())
  if len(set(s)) > 1:
    print('Yes')
  else:
    print('No')
  

if __name__=='__main__':
  main()

Solution (Python):
S = input()
if S == "AAA" or S == "BBB":
    print("No")
else:
    print("Yes")

Solution (Python):
i = input()
if "A" in i and "B" in i:
  print("Yes")
else:
  print("No")

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

Solution (Python):
s=input()

if s == 'AAA' or s == 'BBB':
    print('No')
else:
    print('Yes')

Solution (Python):
s = input()
print(["Yes","No"][s[0]==s[1]==s[2]])

Solution (Python):
s=input()
a,b=0,0
for i in range(3):
    if s[i]=='A':
        a+=1
if a!=3 and a!=0:
    print('Yes')
else:
    print('No')

Solution (Python):
s,t,u=input()
if s==t and s==u:
  print('No')
else:
  print('Yes')

Solution (Python):
s=list(input())
a=0
b=0
for i in range(3):
    if s[i]=="A":
        a+=1
    else:
        b+=1
print("No" if a==3 or b==3 else "Yes")

Solution (Python):


import sys
import math
import time

import collections
from collections import deque
import queue
import copy
import bisect


def dfs(s, prev, pre):
  val[s] += Ope[s] + prev
  for i in G[s]:
    if(i == pre):
      continue
    dfs(i, val[s], s)

def bfs(sx, sy, n):
  que = deque([[sy,sx]])
  while que:
    y,x = que.popleft()
    for i,j in D:
      if(x+i<0 or y+j<0 or x+i>W-1 or y+j>H-1):
        continue
      dist = G[y+j][x+i]
      if(G[y+j][x+i] != "X"):
        if(type(G[y+j][x+i]) is str):
          G[y+j][x+i] = G[y][x]+1
          que.append([y+j,x+i])
        elif(dist>G[y][x]+1):
          G[y+j][x+i] = G[y][x]+1
          que.append([y+j,x+i])
        







S = str(input())
ans = "Yes"

if(S=="AAA" or S=="BBB"):
  ans = "No"
  

print(ans)

Solution (Python):
s=input()
if s.count("A") == 3 or s.count("A") == 0:
    print("No")
else:
    print("Yes")

Solution (Python):
S=input()

if S=='AAA' or S=='BBB':
  print('No')
else:
  print('Yes')

Solution (Python):
s = input()
if 'A' in s and 'B' in s:
  print('Yes')
else:
  print('No')

Solution (Python):
s=input()
k=""
for i in s:
  if k=="":
    k=i
  elif k!=i:
    k=""
    break
if k=="":
  print("Yes")
else:
  print("No")

Solution (Python):
s = str(input())
if s == 'AAA' or s == 'BBB':
  print('No')
else:
  print("Yes")

Solution (Python):
S = input()


if ('AB' in S) | ('BA' in S):
    print('Yes')
else:
    print('No')

Solution (Python):
S = input()
print("Yes" if len(list(set(list(S)))) == 2 else "No")

Solution (Python):

n=input()
for i in ['A','B']:
    if not i in n:
        print('No')
        exit()
print('Yes')

Solution (Python):
def main():
    S = input()
    if 'AB' in S:  
        print("Yes")
    elif 'BA' in S:
        print("Yes")
    else:
        print("No")
        

if __name__ == '__main__':
    main()

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

Solution (Python):
a = input()
if 'A' in a and 'B' in a:
    print("Yes")
else:
    print("No")

Solution (Python):
s = input()
if len(set(s))==2:
    print("Yes")
else:
    print("No")

Solution (Python):
s = input()
flaga = 0
flagb = 0
for i in s:
  if i == "A":
    flaga = 1
  elif i == "B":
    flagb = 1
flag = flaga + flagb
if flag == 2:
  print("Yes")
else:
  print("No")

Solution (Python):
S = input()
if(S == "AAA" or S == "BBB"):
    print("No")
else:
    print("Yes")

Solution (Python):
n = list(input())

n = list(set(n))
if len(n)>1:
	print("Yes")
else:
	print("No")

Solution (Python):
S = input()

if S == "AAA" or S == "BBB":
    ans = 'No'
else:
    ans = 'Yes'

print(ans)

Solution (Python):
a = input()
if a.count('A') == 2 or a.count('B') ==2:
    print('Yes')
else:
    print('No')

Solution (Python):
S=input()
if S=='AAA' or S=='BBB':
  print('No')
else:
  print('Yes')

Solution (Python):
S = input()

if S == "AAA" or S =="BBB":
  print("No")
else:
  print("Yes")

Solution (Python):
s = input()
s= set(s)

if len(s) == 1:
    print('No')
else:
    print('Yes')

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

Solution (Python):
s=input()
ans="Yes"
if s[0]==s[1]:
    if s[1]==s[2]:
        ans="No"

print(ans)

Solution (Python):
s = input()
if s == 'AAA' or s == 'BBB':
  print('No')
else:
  print('Yes')

Solution (Python):
s=input()
print('No' if s=='AAA' or s=='BBB' else 'Yes')

Solution (Python):

s = input()

if s[0] != s[1] or s[1] != s[2] or s[0] != s[2]:
    print("Yes")
else:
    print("No")

Solution (Python):
S=input()

if S=='AAA'or S=='BBB':
    print("No")
else:
    print("Yes")

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

Solution (Python):
s=input()
ans=1
if s[0]==s[1]==s[2]:
  ans=0
if ans:
  print("Yes")
else:
  print("No")

Solution (Python):
s = input()

if s[0] == s[1] and s[1] == s[2]:
    print("No")
else:
    print("Yes")

Solution (Python):
S = input()


dic_ = {"A":0, "B":0}
for s in S:
  dic_[s] += 1

if dic_["A"] == 0 or dic_["B"] == 0:
  print("No")
else:
  print("Yes")

Solution (Python):
s = input()

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

Solution (Python):
def resolve():
    S = input()
    if S == "AAA" or S == "BBB":
        print("No")
    else:
        print("Yes")


if __name__ == "__main__":
    resolve()

Solution (Python):
S = list(i for i in input())

if 'A' in S and 'B' in S:
  print('Yes')
else:
  print('No')

Solution (Python):
d = list(input())
d = set(d)

if len(d) == 1:
    print("No")
else:
    print("Yes")

Solution (Python):
import math
from collections import deque
def main():
    s = set(input())

    print("Yes" if len(s) == 2 else "No")



if __name__ == "__main__":
    main()

Solution (Python):
def resolve():
    a = input()
    if a =="AAA" or a == "BBB":
        print("No")
    else:
        print("Yes")
resolve()

Solution (Python):
s=input()
if "A" in s and "B" in s:
	print("Yes")
else:
	print("No")

Solution (Python):

S = input()
if S == "AAA" or S == "BBB":
    print("No")
else:
    print("Yes")

Solution (Python):
S=input()

if S=="AAA" or S=="BBB":
    print("No")
else:
    print("Yes")

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

Solution (Python):
S = input()
if S == "AAA" or S == "BBB":
    print("No")
else:
    print("Yes")

Solution (Python):
s = input()
if s[0] == s[1] and s[1] == s[2]:
    print("No")
else:
    print("Yes")

Solution (Python):
s = input()

if (s == "AAA") or (s == "BBB"):
  print("No")
else:
  print("Yes")

Solution (Python):
from sys import stdin
S = (stdin.readline().rstrip())
if len(set(list(S))) == 1:
    print("No")
else:
    print("Yes")

Solution (Python):
s = list(input())

p = list(set(s))
if len(p) == 1:
    print('No')
else:
    print('Yes')

Solution (Python):
s=input()

if s=="AAA" or s=="BBB":
    print("No")
else:
    print("Yes")

Solution (Python):
S = input()

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

Solution (Python):
def main():
    s = input()
    if s == 'AAA' or s == 'BBB':
        print('No')
    else:
        print('Yes')


if __name__ == "__main__":
    main()

Solution (Python):
import sys

s = sys.stdin.readline().rstrip()

def main():
    return 'Yes' if len(set(s)) == 2 else 'No'

if __name__ == '__main__':
    ans = main()
    print(ans)

Solution (Python):
A = set(list(input()))

if len(A) == 1:
    print("No")
else:
    print("Yes")

Solution (Python):
S = list(input())
a = 0
b = 0
for s in S:
    if s == 'A':
        a += 1
    else:
        b += 1

if a == 0 or b == 0:
    print('No')
else:
    print('Yes')

Solution (Python):
S = set(input())
if len(S)==2: print('Yes')
else: print('No')

Solution (Python):
s = input()
print('Yes' if 'A' in s and 'B' in s else 'No')

Solution (Python):
s = input()

if s == 'AAA' or s == 'BBB':
    print('No')
else:
    print('Yes')

Solution (Python):
S = input()

if S == "AAA" or S == "BBB":
  print("No")
else:
  print("Yes")

Solution (Python):

def main():
    s = input()
    answer = ""
    if "A" in s and "B" in s:
        answer = "Yes"
    else:
        answer = "No"
    print(answer)

if __name__ == '__main__':
    main()

Solution (Python):
s = input()
if s == "AAA" or s == "BBB":
  print("No")
else:
  print("Yes")

Solution (Python):
s=input()
if s[0:2]=='AB' or s[0:2]=='BA' or s[1:]=='AB' or s[1:]=='BA':
    print("Yes")
else:
    print("No")

Solution (Python):
s = input()
f = lambda x,y : x.count("A") == y
print("No" if f(s, 0) or f(s, 3) else "Yes")

Solution (Python):
s = input()
if s=='AAA' or s=='BBB':
    print('No')
else:
    print('Yes')

Solution (Python):
s = input()
print("No" if len(set(s)) == 1 else "Yes")

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

Solution (Python):
s = set(list(input()))

if len(s)==1:
    print('No')
else:
    print('Yes')

Solution (Python):
S = input()

ps = ''
for s in S:
    if s != ps and ps != '':
        print('Yes')
        break
    ps = s
else:
    print('No')

Solution (Python):
S = input()

if S == "AAA" or S == "BBB":
    print("No")
else:
    print("Yes")

Solution (Python):
S = input()
if len(set(S)) == 2:
    print("Yes")
else:
    print("No")

Solution (Python):
s = input()
if 'A' in s and 'B' in s:
    print('Yes')
else:
    print('No')

Solution (Python):
s = input()
s = [s[0], s[1], s[2]]
if len(set(s)) == 2:
  print('Yes')
else:
  print('No')

Solution (Python):
S = str(input())
if S == 'AAA' or S == 'BBB':
  print('No')
else:
  print('Yes')

Solution (Python):
s_list = list(input())
a = 0
b = 0
for s in s_list:
    if s == 'A':
        a += 1
    elif s == 'B':
        b += 1
if a == 0 or b == 0:
    print('No')
else:
    print('Yes')

Solution (Python):
s=input()
if s=='AAA' or s=='BBB':
    print("No")
else:
    print('Yes')

Solution (Python):
N = input()

ans = 'No' if 'AAA'==N or 'BBB'==N else 'Yes'
print(ans)

Solution (Python):
import sys
def input():
    return sys.stdin.readline()[:-1]

def main():
    S = input()
    if "A" not in S or "B" not in S:
        print("No")
    else:
        print("Yes")

if __name__ == "__main__":
    main()

Solution (Python):
S = input()
if S == 'AAA' or S == 'BBB':
    print("No")
else:
    print("Yes")

Solution (Python):
S = str(input())

S = list(S)
ans = "Yes"

if S[0] == S[1] == S[2]:
    ans = "No"
print(ans)

Solution (Python):
S = input()
if 'A' in S and 'B' in S:
    print('Yes')
else:
    print('No')

Solution (Python):
cmin = lambda a,b : a if a<b else b
cmax = lambda a,b : a if a>b else b
iin = lambda : int(input())
lin = lambda : list(map(int,input().split()))
rin = lambda n : [int(input()) for _ in range(n)]

s = set(input())

print("No" if len(s)==1 else "Yes")

Solution (Python):
s = input()
if s in ('AAA', 'BBB'):
    print('No')
else:
    print('Yes')

Solution (Python):
a = input()
if len(set(a)) > 1:
    print('Yes')
else:
    print('No')

Solution (Python):
import sys
S = input()
if S == 'AAA' or S== 'BBB':
  print('No')
else:
  print('Yes')

Solution (Python):

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

Solution (Python):
s = input()
if all(s[i] == s[0] for i in range(3)):
    print('No')
else:
    print('Yes')

Solution (Python):
def main():


	l = list(str(input()))

	ans = 0
	for i in range(len(l)-1):
		if l[i] != l[i+1]:
			ans += 1
	if ans > 0:
		print("Yes")
	else:
		print("No")
	

if __name__ == '__main__':
	main()

Solution (Python):
S = list(input(""))
if S[0] != S[1] or S[1] != S[2]:
    print("Yes")
else:
    print("No")

Solution (Python):
S = [i for i in input().split()][0]
if len(set(S)) == 1:
  print("No")
else:
  print("Yes")

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

Solution (Python):
def main():
    s = input().rstrip()
    if s[0] != s[1] or s[1] != s[2] or s[2] != s[0]:
        print("Yes")
    else:
        print("No")

if __name__ == "__main__":
    main()

Solution (Python):


s = input()

if len(set(list(s))) == 1:
    print("No")
else:
    print("Yes")

Solution (Python):
s = input()
if s.find('AB') != -1 or s.find('BA') != -1:
    print('Yes')
else:
    print('No')

Solution (Python):
s = input()

if "A" in s and "B" in s:
    print("Yes")
else:
    print("No")

Solution (Python):
import sys

def input():
    return sys.stdin.readline()[:-1]


S = input()

if 'A' in S and 'B' in S:
	print("Yes")
else:
	print("No")

Solution (Python):
s=input()
if s=="AAA" or s=="BBB":
	print("No")
else:
	print("Yes")

Solution (Python):
S = set(input())
print("Yes" if len(S) == 2 else "No")

Solution (Python):
s = input()
a_count = s.count('A')
b_count = s.count('B')
if a_count == 3 or b_count == 3:
    print('No')
else:
    print('Yes')

Solution (Python):
S = input()
if len(set(S))==2:
  print('Yes')
else:
  print('No')

Solution (Python):
print('No' if len(set(input()))==1 else 'Yes')

Solution (Python):
s = set(input())

if len(s) == 1:
    print("No")
else:
    print("Yes")

Solution (Python):
S = input()

ans = 'No'
for i in range(1, len(S)):
    if S[i-1] != S[i]:
        ans = 'Yes'

print(ans)

Solution (Python):
s = input()
if len(set(s)) == 2:
    print('Yes')
else:
    print('No')

Solution (Python):
def main():
    s = input()
    if s.__contains__("A") and s.__contains__("B"):
        print("Yes")
    else:
        print("No")


if __name__ == '__main__':
    main()

Solution (Python):
s=input()
if s[0]==s[1] and s[1]==s[2]:
    print("No")
else:
    print("Yes")

Solution (Python):
S = list(input())
print("Yes") if "B" in S and "A" in S else print("No")

Solution (Python):
S = input()
if S == "AAA" or S == "BBB":
    print("No")
else:
    print("Yes")

Solution (Python):


if __name__ == '__main__':
    S = input()

    if (S[0] == S[1] and S[1] == S[2]):
        print("No")
    else:
        print("Yes")

Solution (Python):
a = input()

if a.count("A") == 0 or a.count("A") == 3:
  print("No")
else:
  print("Yes")

Solution (Python):
s=input()
print('No' if len(set(s)) == 1 else 'Yes')

Solution (Python):
bus=input()

if (bus =="AAA") or (bus=="BBB"):
  print('No')
else:
  print('Yes')

Solution (Python):
S = input()

if S == "AAA":
    ans = "No"
elif S == "BBB":
    ans = "No"
else:
    ans = "Yes"
print(ans)

Solution (Python):
s=input()

s = list(s)

if 'A' in s and 'B' in s:
    print('Yes')
else:
    print('No')

Solution (Python):
s = str(input())

if s == "AAA" or s == "BBB":
    print("No")
else:
    print("Yes")

Solution (Python):
S = input()
if S.count('A') != 3 and S.count('B') != 3:
    print('Yes')
else:
    print('No')

Solution (Python):
N = input()

if "A" in N and "B" in N:
    print("Yes")
else:
    print("No")

Solution (Python):
S = input()
if len(set(S)) == 2:
    print('Yes')
else:
    print('No')

Solution (Python):

import sys

YES = "Yes"  
NO = "No"  


def solve(S: str):
    if len(set(S)) > 1:
        print("Yes")
    else:
        print("No")
    return



def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word

    tokens = iterate_tokens()
    S = next(tokens)  
    solve(S)


if __name__ == "__main__":
    main()

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

Solution (Python):
S = str(input())

if S[0] == S[1] == S[2]:
    print("No")
else:
    print("Yes")

Solution (Python):

S = input()


if S == 'AAA' or S == 'BBB':
    print('No')
else:
    print('Yes')

Solution (Python):
if __name__ == '__main__':
    s = input()
    if (s[0] == s[1]) and (s[1] == s[2]):
        print("No")
    else:
        print("Yes")

Solution (Python):
S = input()
if "A" in S and "B" in S:
    print("Yes")
else:
    print("No")

Solution (Python):
s=set([i for i in input()])
print("Yes" if len(s)==2 else "No")

Solution (Python):
S = input()
if S != 'AAA' and S != 'BBB':
    print('Yes')
else:
    print('No')

Solution (Python):
if __name__ == "__main__":
    s = input()

    if s == 'AAA' or s == 'BBB':
        print('No')
    else:
        print('Yes')

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

Solution (Python):


iim = lambda: map(int, input().rstrip().split())

def resolve():
    s1, s2, s3 = input()

    print("Yes" if s1 != s2 or s2 != s3 else "No")

if __name__ == "__main__":
    resolve()

Solution (Python):
S = input()

if S[0] == S[1] == S[2]:
    print("No")
else:
    print("Yes")

Solution (Python):
S = input()
flag = True
for i in range(len(S)-1):
    if S[i]!=S[i+1]:
        flag = False
        break
print("No") if flag else print("Yes")

Solution (Python):
s = input()
if len(set(s)) == 1:
    print("No")
else:
    print("Yes")

Solution (Python):



import sys

s2nn = lambda s: [int(c) for c in s.split(' ')]
ss2nn = lambda ss: [int(s) for s in list(ss)]
ss2nnn = lambda ss: [s2nn(s) for s in list(ss)]
i2s = lambda: sys.stdin.readline().rstrip()
i2n = lambda: int(i2s())
i2nn = lambda: s2nn(i2s())
ii2ss = lambda n: [i2s() for _ in range(n)]
ii2nn = lambda n: ss2nn(ii2ss(n))
ii2nnn = lambda n: ss2nnn(ii2ss(n))

def main():
    S = set(i2s())
    if len(S) == 1:
        print('No')
    else:
        print('Yes')
    return

main()

Solution (Python):
s = input()
if s == "AAA" or s == "BBB":
    print("No")
else:
    print("Yes")

Solution (Python):
S = str(input())
if S[0] != S[1] or S[1] != S[2]:
    print("Yes")
else:
    print("No")

Solution (Python):
s = input()

if s == "AAA" or s == "BBB":
    print('No')
else:
    print('Yes')

Solution (Python):
def main():
    S = input()
    if S[0] == S[1] == S[2]:
        print("No")
    else:
        print("Yes")

if __name__ == "__main__":
    main()

Solution (Python):
s = input()

if s == 'AAA' or s == 'BBB':
    print('No')
else:
    print('Yes')

Solution (Python):
set = set(input())

if len(set) == 1:
  print("No")
else:
  print("Yes")

Solution (Python):
s=input()
print('No' if s=='AAA' or s=='BBB' else 'Yes')

Solution (Python):
s = input()
if s == "AAA":
  print("No")
  exit()
elif s == "BBB":
  print("No")
  exit()
else:
  print("Yes")

Solution (Python):
s = input()
if s =='AAA' or s=='BBB':
    print('No')
else:
    print('Yes')

Solution (Python):
s = input()

if s == "AAA":
  print("No")
elif s == "BBB":
  print("No")
else:
  print("Yes")

Solution (Python):
s = input()
if s == "AAA" or s == "BBB":
    print("No")
else:
    print("Yes")

Solution (Python):
s = input()
if "A" in s and "B" in s:
	print("Yes")
else:
	print("No")

Solution (Python):
def read():
    S = str(input().strip())
    return S,

def solve(S):
    if S == "AAA" or S == "BBB":
        return "No"
    return "Yes"

if __name__ == '__main__':
    inputs = read()
    print("{}".format(solve(*inputs)))

Solution (Python):
a=str(input())

if a == "AAA" or a == "BBB":
    print("No")
else:
    print("Yes")

Solution (Python):
import sys
input = sys.stdin.readline

def main():
    s=list(input())
    a,b=0,0
    for i in range(3):
        if s[i]=='A':
            a+=1
        else:
            b+=1
    if a*b==0:
        print('No')
    else:
        print('Yes')

if __name__ == '__main__':
    main()

Solution (Python):
s = input()
if s == "AAA" or s == "BBB":
	print ("No")
else:
	print ("Yes")

Solution (Python):
s = input()
if (not ("A" in s)) or (not ("B" in s)):
    print("No")
else:
    print("Yes")

Solution (Python):
import sys
input = sys.stdin.readline

def main():
    s = input()
    if s.count(s[0]) != 3:
        print("Yes")
    else:
        print("No")


main()

Solution (Python):

s = input()
if s == "AAA" or s=="BBB":
    print("No")
else:
    print("Yes")

Solution (Python):
S = input()

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

Solution (Python):
s=list(input())
print('Yes' if len(set(s))>1 else 'No')

Solution (Python):
S=input()
if S[0] == S[1] and S[1] == S[2]:
    print ("No")
else:
    print ("Yes")

Solution (Python):
s = input()

if s == 'AAA' or s == 'BBB':
  print('No')
else:
  print('Yes')

Solution (Python):
s=input()
print('Yes' if 'AB' in s or 'BA' in s else 'No')

Solution (Python):
s = input()

if s == 'AAA' or s == 'BBB':
    print('No')
else:
    print('Yes')

Solution (Python):
s = input()

print( "Yes" if s[0] != s[1] or s[1] != s[2] else "No")

Solution (Python):
n=input()
if n=="AAA" or n=="BBB":
    print("No")
else:
    print("Yes")

Solution (Python):
S = set(input())
if {"A", "B"} == S:
    print("Yes")
else:
    print("No")

Solution (Python):
s=input()
if len(set(s)) == 2:
  print("Yes")
else:
  print("No")

Solution (Python):
import sys
input = lambda: sys.stdin.readline().rstrip() 

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

if __name__ == '__main__':
    resolve()

Solution (Python):
S = input()

if S == "AAA" or S == "BBB":
    print("No")
else:
    print("Yes")

Solution (Python):
s = input()

if s[0] == s[1] == s[2]:
    print("No")
else:
    print("Yes")

Solution (Python):
S = input()

tmp = S[0]
for i in range(3):
    if tmp !=S[i]:
        print("Yes")
        exit()
print("No")

Solution (Python):
S = input()

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

Solution (Python):
s = input()
if s == "AAA" or s == "BBB":
    print("No")
else:
    print("Yes")

Solution (Python):
S=input()

if ("A" in S) and ("B" in S):
  print("Yes")
else:
  print("No")

Solution (Python):
s = input()

if s == "AAA" or s == "BBB":
  print("No")
else:
  print("Yes")

Solution (Python):
S=input()
x=dict()
a=0
b=0
for i in range(3):
    if S[i]=="A":
        a=1
    else:
        b=1
if a==1 and b==1:
    print("Yes")
else:
    print("No")

Solution (Python):
s=input()
if s=='AAA' or s=='BBB':
    print('No')
else:
    print('Yes')

Solution (Python):
S = input()
if S =="AAA" or S =="BBB":
    print("No")
else:
    print("Yes")

Solution (Python):
s = input()
if len(set(s)) == 1:
    print('No')
else:
    print('Yes')

Solution (Python):
s = input()
if len(set(s)) == 2:
    print('Yes')
else:
    print('No')

Solution (Python):
a,b,c = input()
if a==b and b==c:
  print('No')
else:
  print('Yes')

Solution (Python):
import sys
import math
import copy
import queue
input = sys.stdin.readline
def LI(): return [int(x) for x in input().split()]
INF = 10**15
DD = ((1,0),(0,1),(-1,0),(0,-1))
S = input()
if 'A' in S and 'B' in S:
    print ('Yes')
else:
    print ('No')

Solution (Python):
s = input()
li = list(s)
d = set(li)
if len(d) == 2:
    print("Yes")
else:
    print("No")

Solution (Python):
S = input()

if "A" in S and "B" in S:
    print("Yes")
    exit(0)
print("No")

Solution (Python):
S=input()
if S[0]==S[1]==S[2]:
    print("No")
else:
    print("Yes")

Solution (Python):
print('No' if len(set(input())) == 1 else 'Yes')

Solution (Python):
s = input()
if(s.count('B') == 0 or s.count('A') == 0):
    print("No")
else:
    print("Yes")

Solution (Python):
s = input()

if s == "AAA" or s == "BBB":
    print("No")
else:
    print("Yes")

Solution (Python):
S = input()
if S[0] == S[1] == S[2]:
    print("No")
else:
    print("Yes")

Solution (Python):
if len(set(input()))==1:
    print("No")
else:
    print("Yes")

Solution (Python):
s = input()
if s =="AAA" or s == "BBB":
    print("No")
else:
    print("Yes")

Solution (Python):
print('Yes' if len(set(input())) == 2 else 'No')

Solution (Python):
s = len(list(set(list(input()))))

if s == 1:
  print('No')
else:
  print('Yes')

Solution (Python):
S = list(input())

flag = False

if S[0] != S[1]:
    flag = True
if S[1] != S[2]:
    flag = True

if flag:
    print('Yes')
else:
    print('No')

Solution (Python):
S = input()
if S == "AAA" or S == "BBB":
    print("No")
else:
    print("Yes")

Solution (Python):
s = str(input())
ans = 'Yes'
if s[0] == s[1] and s[0] == s[2]:
    ans = 'No'
print(ans)

Solution (Python):
def main():
  s = input()
  if s == 'AAA' or s == 'BBB':
    print('No')
  else:
    print('Yes')
  
if __name__ == "__main__":
  main()

Solution (Python):
s = input()
if s=='AAA' or s=='BBB':
    print('No')
else:
    print('Yes')

Solution (Python):
s=input()
if s=="AAA" or s=="BBB":
  print("No")
else:
  print("Yes")

Solution (Python):
if __name__ == '__main__':
    s = input()

    if s == 'AAA' or s == 'BBB':
        print("No")
    else:
        print("Yes")

Solution (Python):
s= input()
print("No" if len(set(s)) == 1 else "Yes")

Solution (Python):
S = input()
if S[0] == S[1] and S[1] == S[2]:
  print("No")
else:
  print("Yes")

Solution (Python):
A = input()

if len(set(A)) >= 2:
    print("Yes")
else:
    print("No")

Solution (Python):
s = input()

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

Solution (Python):
s = list(input())
a = 0
b = 0
for i in range(3):
    if s[i] == "A":
        a += 1
    else:
        b += 1
if a == 3 or b == 3:
    print("No")
else:
    print("Yes")

Solution (Python):
S = list(input())

T = list(set(S))

if len(T) == 1:
  print("No")
else:
  print("Yes")

Solution (Python):
N=(input())
if N=="AAA" or N == "BBB":
    print("No")
else:
    print("Yes")

Solution (Python):
S = input()

if S == 'AAA' or S == 'BBB':
    print('No')
else:
    print('Yes')

Solution (Python):






import math
from functools import lru_cache





MOD = 10**9 +7
INF = float('inf')





kaijo_memo = []
def kaijo(n):
  if(len(kaijo_memo) > n):
    return kaijo_memo[n]
  if(len(kaijo_memo) == 0):
    kaijo_memo.append(1)
  while(len(kaijo_memo) <= n):
    kaijo_memo.append(kaijo_memo[-1] * len(kaijo_memo) % MOD)
  return kaijo_memo[n]

gyaku_kaijo_memo = []
def gyaku_kaijo(n):
  if(len(gyaku_kaijo_memo) > n):
    return gyaku_kaijo_memo[n]
  if(len(gyaku_kaijo_memo) == 0):
    gyaku_kaijo_memo.append(1)
  while(len(gyaku_kaijo_memo) <= n):
    gyaku_kaijo_memo.append(gyaku_kaijo_memo[-1] * pow(len(gyaku_kaijo_memo),MOD-2,MOD) % MOD)
  return gyaku_kaijo_memo[n]

def nCr(n,r):
  if(n == r):
    return 1
  if(n < r or r < 0):
    return 0
  ret = 1
  ret = ret * kaijo(n) % MOD
  ret = ret * gyaku_kaijo(r) % MOD
  ret = ret * gyaku_kaijo(n-r) % MOD
  return ret

def factorization(n):
    arr = []
    temp = n
    for i in range(2, int(-(-n**0.5//1))+1):
        if temp%i==0:
            cnt=0
            while temp%i==0:
                cnt+=1
                temp //= i
            arr.append([i, cnt])
    if temp!=1:
        arr.append([temp, 1])

    if arr==[]:
        arr.append([n, 1])
    return arr





S = str(input())


if S == "AAA" or S == "BBB":
  print("No")

else:
  print("Yes")

Solution (Python):
s=list(input())

if s[0]==s[1] and s[1]==s[2] and s[2]==s[0]:
    print("No")
else:
    print("Yes")

Solution (Python):
S = input()
if S[0]==S[1] and S[1]==S[2]:
    print("No")
else:
    print("Yes")

Solution (Python):
s = input()
if s[0] == s[1] == s[2]:
    print("No")
else:
    print("Yes")

Solution (Python):
S = input()

if S == 'AAA' or S == 'BBB':
    print('No')
else:
    print('Yes')

Solution (Python):


s=list(input())
s=set(s)
if len(s)==1:
    print('No')
else:
    print('Yes')

Solution (Python):
s = input()

if s[0] != s[1] or s[1] != s[2]:
  print("Yes")
else:
  print("No")

Solution (Python):
s = input()
flg = True
if s == "AAA" or s == "BBB": flg = False
print('Yes' if flg else "No")

Solution (Python):
s=list(str(input()))
s=set(s)
if len(s)!=2:
    print("No")
else:
    print("Yes")

Solution (Python):
x=input()
if "A" in x and "B" in x:
  print("Yes")
else:
  print("No")