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 s.count("A") == 3 or s.count("B") == 3:
  print("No")
else:
  print("Yes")

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

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

Solution (Python):
S = input()
sum = 0
for i in S:
  if i == 'A':
    sum += 1
if sum == 0 or sum == 3:
  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()

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

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

Solution (Python):
def main():
    S = set(input())
    print("Yes" if 1 < len(S) else "No")
    return


main()

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

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

Solution (Python):
s = input()
p = s[0]
for i in range(len(s)):
    if s[i] != p:
        print('Yes')
        exit()
print('No')

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()
a, b = [False, False]

for s in S:
    if s == "A":
        a = True
    else:
        b = True

ans = "No"
if a and b:
    ans = "Yes"

print(ans)

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

Solution (Python):
s = input()
if s[0] == s[1] and s[0] == s[2]:
    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):
import sys

if sys.platform =='ios':
    sys.stdin=open('input_file.txt')
a=input()

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

Solution (Python):
import collections
S = list(input())
c = collections.Counter(S)


if 0 < c['A'] < 3:
  print('Yes')
else:
  print('No')

Solution (Python):
a=input()
p1=a[-1]
p2=a[0]
p3=a[1]
 
if p1==p2==p3:
  print("No")
else:
  print("Yes")

Solution (Python):





S = list(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):
import sys

s = input()

if s == 'AAA' or s == 'BBB':
    print('No')
    sys.exit()

print('Yes')

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

Solution (Python):
S=input()
if S==('B'*3) or S==('A'*3):
  print('No')
else:
  print('Yes')

Solution (Python):
a=list(input())
count=0
if a[0]!=a[1]:
  count=1
if a[1]!=a[2]:
  count=count+1
if count>=1:
  print("Yes")
else:
  print("No")

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

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

Solution (Python):
a, b, c = input()
s=set([a, b, c])
if len(s)==1:
  print("No")
else:
  print("Yes")

Solution (Python):
S = input()

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

Solution (Python):
a=input()
if a.count("A")>=1 and a.count("B")>=1:
  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().strip()
if (S == 'AAA' or S == 'BBB'):
	print('No')
else:
	print('Yes')

Solution (Python):
s = input()
temp = set()
for i in range(3):
    temp.add(s[i])
if len(temp) == 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.count("A") > 0 and s.count("B") > 0:
    print("Yes")
else:
    print("No")

Solution (Python):
string = input()
if len(set(string)) == 1:
  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 = list(input())
if S[0] == S[1] and S[1] == S[2]:
    print('No')
else:
    print('Yes')

Solution (Python):
def resolve():
    import sys

    input = sys.stdin.readline




    s = input().rstrip()

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

resolve()

Solution (Python):

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

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

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

Solution (Python):
a,b,c=input()
if a==b==c=='A':
  print('No')
elif a==b==c=='B':
  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[0]==S[1] and S[1]==S[2]:
  print('No')
else:
  print('Yes')

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

Solution (Python):



strInput = input()
existA = 'A' in strInput
existB = 'B' in strInput

if existA and existB:
    print('Yes')
else:
    print('No')

Solution (Python):
S = input()
if S in ("AAA", "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[0] == S[1] and S[1] == S[2]:
  print('No')
else: 
  print('Yes')

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

Solution (Python):
s = input()
c = s.count('A')
if 1 <= c < 3:
    print('Yes')
else:
    print('No')

Solution (Python):
s = input()
if s.find('AB') >= 0 or s.find('BA') >= 0:
    print('Yes')
else:
    print('No')

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

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

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

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 = list(input().strip())

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

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

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

Solution (Python):
n = input()
s = list(n)
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):
x = input()
if len(set(x))==1:
    print("No")
else:
    print("Yes")

Solution (Python):
S = input()

if len(set(S)) == 2:
    print("Yes")
else:
    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 S == 'AAA':
    print('No')
elif S == 'BBB':
    print('No')
else:
    print('Yes')

Solution (Python):
s = input()

if (s[0] != s[1] or s[0] != s[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 = input()

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

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

Solution (Python):
str = input()
a = str[0]
b = str[1]
c = str[2]

if a == b ==c:
  print('No')
elif a != b or a != c or b != c:
  print('Yes')

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

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

Solution (Python):


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

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

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

Solution (Python):
if len(set(input())) == 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=list(map(str,input()))
if S[0]==S[1]==S[2]:
	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 main():
    S = input()
    if S == 'AAA' or S == 'BBB':
        print("No")
    else:
        print("Yes")

if __name__ == '__main__':
    main()

Solution (Python):
input_line = input()

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

Solution (Python):
s=input()
ans=s.count('A')!=len(s) and s.count('B') !=len(s)
print("Yes" if ans else "No")

Solution (Python):
a=input()
if(a[0]==a[1]==a[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]==S[2]:print('No')
else:print('Yes')

Solution (Python):
S = input()

if 'AB' in S or 'BA' in S:
    print('Yes')
    exit()

print('No')

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

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

Solution (Python):
a=input()
flag=False
if a[0]!=a[1]:
    flag=True
if a[1]!=a[2]:
    flag=True

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

Solution (Python):
S=list(map(str,input()))

if S[0]!=S[1]:
    print("Yes")

elif S[0]!=S[2]:
    print("Yes")

elif S[1]!=S[2]:
    print("Yes")

else:
    print("No")

Solution (Python):
S=str(input())
a=S.count('A')
b=S.count('B')
if a > 0 and b > 0:
  print('Yes')
else:
  print('No')

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

Solution (Python):
s = input()
if s == 'B'*len(s) or s == 'A'*len(s):
  print("No")
else:
  print("Yes")

Solution (Python):
line = input()
tmp = [0,0,0]
for i in range(3):
    tmp[i] = line[i]
tmp = set(tmp)

if len(tmp) == 1:
    print("No")
if len(tmp) == 2:
    print("Yes")

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

Solution (Python):
args = input()
if 'A' in args:
  if 'B' in args:
    print('Yes')
    exit()
print('No')

Solution (Python):
s, t, u = input()

if s == 'A' and t == 'A' and u == 'A':
    print('No')
elif s == 'B' and t == 'B' and u == 'B':
    print('No')
else:
    print('Yes')

Solution (Python):
import math
import string
import itertools
import fractions
import heapq
import collections
import re
import array
import bisect
import sys
import random
import time
inf = 10**9


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


if __name__ == '__main__':
    main()

Solution (Python):
i=input();print('YNeos'[i=='AAA' or i=='BBB'::2])

Solution (Python):
s=input()

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

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

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

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

Solution (Python):
s = input()

flag = False

for i in range(3):
    for j in range(3):
        if s[i] != s[j]:
            flag = True

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

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

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

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

    if len(list(set(S))) > 1:
        print('Yes')
    else:
        print('No')



if __name__ == "__main__":
    main()

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

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

if (len(set(S)) == 1):
    ans = 'No'
else:
    ans = 'Yes'

print(ans)

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

Solution (Python):
a = input()
l=[i for i in a]
l1=set(l)
if len(l1)>=2:
    print('Yes')
else:
    print('No')

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

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

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

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

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

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

Solution (Python):



station = input()

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

Solution (Python):
x = set(input())
print('No' if len(x)==1 else '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] == S[2] :
  print("No")
else :
  print("Yes")

Solution (Python):
S = str(input())
if S.count('A') == 3:
    print("No")
elif S.count('B') == 3:
    print("No")
else:
    print("Yes")

Solution (Python):
S = 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] == s[2]:
	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])|(S[2]!=S[1]) :
    print("Yes")
else:
    print("No")

Solution (Python):
from sys import stdin


def get_result(data):
    S = data[0]
    return 'Yes' if S != 'AAA' and S != 'BBB' else 'No'


if __name__ == '__main__':
    data = list(map(str, stdin.readline().rstrip('\n').split(' ')))
    result = get_result(data)
    print(result)

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

Solution (Python):

from collections import defaultdict, deque
from heapq import heappush, heappop
from itertools import permutations
import sys
import math
import bisect


def LI(): return [int(x) for x in sys.stdin.readline().split()]


def I(): return int(sys.stdin.readline())


def LS(): return [list(x) for x in sys.stdin.readline().split()]


def S():
    res = list(sys.stdin.readline())
    if res[-1] == "\n":
        return res[:-1]
    return res


def IR(n):
    return [I() for i in range(n)]


def LIR(n):
    return [LI() for i in range(n)]


def SR(n):
    return [S() for i in range(n)]


def LSR(n):
    return [LS() for i in range(n)]


sys.setrecursionlimit(1000000)
mod = 1000000007


def solve():
    s = S()
    if 'A' in s and 'B' in s:
        print('Yes')
    else:
        print('No')
    return



if __name__ == "__main__":
    solve()

Solution (Python):
print("YNeos"[2-len(set(input()))::2])

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

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

Solution (Python):
S = input().encode("ASCII")

if(S[0] == S[1] and S[0] == 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):
a=input()
if len(set(a))==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 len(set(S)) == 1:
    print("No")
else:
    print("Yes")

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

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

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

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

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

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

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

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

Solution (Python):

S=str(input())

S_list=list(S)

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

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

Solution (Python):
a = input()
if a == "AAA" or a == "BBB":
    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())
if S[0]  == "A" and S[1]  == "A" and S[2]  == "A":
  print("No")
elif S[0]  == "B" and S[1]  == "B" and S[2]  == "B":
  print("No")
else:
  print("Yes")

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

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

Solution (Python):
S = input()

s = list(S)

ans = 'Yes'

if (s[0] == s[1]) and (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):
if __name__ == '__main__':
    s = input()
    print('No' if s == 'AAA' or s == 'BBB' else 'Yes')

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

ans = 'Yes'

if (S[0] == S[1]) and (S[1] == S[2]):
  ans = 'No'

print(ans)

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

Solution (Python):
s=input()
a=0
b=0
for i in s:
  if i=="A":
    a+=1
  elif i=="B":
    b+=1
if (a+b)!=3 or (a==0 or b==0):
  print("No")
else:
  print("Yes")

Solution (Python):




station = input()

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

Solution (Python):
n=input()

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

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

Solution (Python):
s = input()

if s == 'AAB' or s == "ABA" or s == 'ABB' or s == 'BAA' or s =="BAB" or s=="BBA":
    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()
if S[0] == S[1] and S[0] == S[2]:
    print('No')
else:
    print('Yes')

Solution (Python):
S = input() 

if S.replace("A" ,"") == "" or S.replace("B", "") == "":
    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 in "AAA-BBB":
    print("No")
else:
    print("Yes")

Solution (Python):
comp = input()
if comp.count('A') == 0 or comp.count('A') == 3:
  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[0] == S[1] == S[2]:
    print('No')
else:
    print('Yes')

Solution (Python):
s = input()

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

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

Solution (Python):
s = input()

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

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

Solution (Python):
a=input()
if a in ["AAA","BBB"]:
  print("No")
else:
  print("Yes")

Solution (Python):
def A():
    S = input()
    s = "Yes"
    if (S=="AAA") or (S=="BBB"):
        s = "No"
    print(s)
    return s


if __name__ == '__main__':
    A()

Solution (Python):
s=input()

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

Solution (Python):
s = input()

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

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

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

if (s.count('B') == 0) or (s.count('B') == 3):
  print("No")
else:
  print("Yes")

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

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

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

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

Solution (Python):
S = input()
if S.count(S[0]) == 3:
  print('No')
else:
  print('Yes')

Solution (Python):
txt = input()
a,b,c = list(txt)
if a == b:
  if b == c:
    print('No')
  else:
    print('Yes')
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 "A" in s and "B" in s:
    print("Yes")
else:
    print("No")

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)) == 1:
  ans = "No" 
print(ans)

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

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

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

Solution (Python):

m=input()
m2=[m[:1],m[1:2],m[2:]]

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

Solution (Python):
s = input()

if s in ('AAA','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()
if s =='AAA' or s=='BBB':
    print('No')
else:
    print('Yes')

Solution (Python):
if input() in ('AAA', '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 == 'AAA' ) or (s == 'BBB') :
  print('No')
else:
  print('Yes')

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

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

Solution (Python):
str = input()

if str == 'AAA':
    print('No')
elif str == 'BBB':
    print('No')
else:
    print('Yes')

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

Solution (Python):
operator = input().strip()
a, b = 0, 0

for i in operator:
  if i == "A":
    a += 1
  else:
    b += 1
if a == 2:
  print("Yes")
elif b == 2:
  print("Yes")
else:
  print("No")

Solution (Python):
def solve():
	ar=input()
	a=0
	b=0
	for i in ar:
		if(i=='A'):
			a+=1
		else:
			b+=1;
	if(a==0 or b==0):
		print("No");
	else:
		print("Yes");			
t=1

while(t>0):
	solve()
	t-=1

Solution (Python):
s = input()

if s in ['AAA', 'BBB']:
    print('No')
else:
    print('Yes')

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

s = raw_input()
solve(s)

Solution (Python):
a = input()
if a == "AAA" or a == "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()
 

S_list = list(S)
 
AorB = S_list[0]
counter = 0
for i in range(len(S_list)):
  if(AorB == S_list[i]):
    counter = counter + 1
 
if(counter == len(S_list)):
  print("No")
else:
  print("Yes")

Solution (Python):
Station = input()

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

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

Solution (Python):
import sys
import numpy as np

s=sys.stdin.readline()
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):
print("No" if len(set(input())) == 1 else "Yes")

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()
ans ='No'
if 'A' in S:
  if 'B' in S:
    ans = 'Yes'
print(ans)

Solution (Python):
a=input()
print("No" if(a=="AAA" or a=="BBB") else "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):
import sys

x = sys.stdin.readline()

a=0
b=0

for i in x:
  if ( i == 'A'):
    a = 1
  if ( i == 'B'):
    b = 1

if( a == 1 and b == 1):
	print "Yes"
else:
	print "No"

sys.stdout.flush()

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] and s[1] == s[2]:
    print('No')
else:
    print('Yes')

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

Solution (Python):
while True:
    sta = input()
    if len(sta) == 3:
        break

judge = ""
count = 0
result = ""
station = [sta[0], sta[1], sta[2]]
for ss in station:
    if count == 0:
        judge = ss
    else:
        if ss == judge:
            result = "No"
        else:
            result = "Yes"
            break
            
    count = 1
print(result)

Solution (Python):

st = str(input())
while(True):
  if(st == "AAA"):
    print("No")
    break
  elif(st == "BBB"):
    print("No")
    break
  else:
    print("Yes")
    break

Solution (Python):
s = input()

if all((s[i] == 'A' for i in range(3))):
    print('No')
elif all((s[i] == 'B' for i in range(3))):
    print('No')
else:
    print('Yes')

Solution (Python):
s = str(input())
if s.count("A") == 0 or s.count("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):

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

Solution (Python):
import sys
readline = sys.stdin.readline
s = set(readline().strip())
if len(s) != 1:
    print("Yes")
else:
    print("No")

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

Solution (Python):
a = input()
if a == "AAA" or a == "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.split()
if s.count("A") > 0 and s.count('B') > 0:
  print("Yes")
else:
  print("No")

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

Solution (Python):
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.find("A") == -1 or S.find("B") == -1:
    print("No")
else:
    print("Yes")

Solution (Python):
s = input();

if s.count("B") * s.count("A") != 0:
    print("Yes");
else:
    print("No");

Solution (Python):
s=input()
l=[]
for i in range(len(s)):
	l.append(s[i])
s_l=set(l)
print('Yes' if len(s_l)==2 else 'No')

Solution (Python):
a = input()

for i in range(3):
  if i == 2:
    break
  elif a[i] != a[i+1]:
    break

if i == 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.find("A") == -1 or S.find("B") == -1:
    print("No")
else:
    print("Yes")

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

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

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

if __name__ == '__main__':
    main()

Solution (Python):
S = input().strip()

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

Solution (Python):





s = input()

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

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

Solution (Python):
s = input()

if 'A' in s and 'B' in s:
  print("yes".capitalize())
else:
  print("no".capitalize())

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

Solution (Python):
s =  input()

if s in ("AAA", "BBB"):
  	print("No")
else:
  print("Yes")

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