qyliang/CodeNanoFix huggingface dataset:
Buggy code:
s = str(input())

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

Fixed code:
s = str(input())

print("No") if s=="AAA" or s=="BBB" else print("Yes")
Buggy code:
S = input()
if S = 'AAA' or S = 'BBB':
  print('No')
else:
  print('Yes')
  

Fixed code:
S = input()
if (S == 'AAA') or (S == 'BBB'):
  print('No')
else:
  print('Yes')
Buggy code:
S = str(input())

c = S[0]
d = S[1]
e = S[2]

print(c + d + e)

if c == d == e:
    print("No")
else:
    print("Yes")

Fixed code:
S = str(input())

c = S[0]
d = S[1]
e = S[2]

if c == d == e:
    print("No")
else:
    print("Yes")
Buggy code:
s = input()
if s[0] == s[1] and s[1] == [2]:
	print('No')
else:
	print('Yes')

Fixed code:
s = input()

if s[1] == s[0] == s[2]:
    print("No")
else:
    print("Yes")
Buggy code:
S = input()
if "AAA" or "BBB":
  print("No")
else:
  print("Yes")


Fixed code:
S=input()
if (S=="AAA") or (S=="BBB"):
    print("No")
else:
    print("Yes")
Buggy code:
S = list(input())
print(S)
if S[0] == S[2] and S[1] == S[2]:
    print('No')
else:
    print('Yes')

Fixed code:
S = list(input())
if S[0] == S[2] and S[1] == S[2]:
    print('No')
else:
    print('Yes')
Buggy code:
s=list(input())
if s[0] != s[1] or s[1] != s[2]:
  print("Yes)
else:
        print("No)

Fixed code:
s=list(input())
if s[0] != s[1] or s[1] != s[2]:
    print("Yes")
else:
    print("No")
Buggy code:
s = list(input())

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

Fixed code:
s = input()
if len(list(set(s))) == 2:
  print('Yes')
else:
  print('No')
Buggy code:
import sys 
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines
S = readline().decode().split()
if 'A' in S and 'B' in S:
    print('Yes')
else:
    print('No')

Fixed code:
import sys 
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines
S = readline().decode()
if 'A' in S and 'B' in S:
    print('Yes')
else:
    print('No')
Buggy code:
S=input()
if S[0]==S[1]:
    print('Yes')
elif S[1]==S[2]:
    print('Yes')
elif S[0]==S[2]:
    print('Yes')
else:
    print('No')
    

Fixed code:
S=input()
if S[0]!=S[1]:
    print('Yes')
elif S[1]!=S[2]:
    print('Yes')
elif S[0]!=S[2]:
    print('Yes')
else:
    print('No')
Buggy code:
s = input()
if s == 'AAA' or 'BBB':
    print('No')
else:
    print('Yes')

Fixed code:
s =input()
if (s == "AAA") or (s == "BBB"):
  print("No")
else:
  print("Yes")
Buggy code:
S = input()

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

Fixed code:
S = input()

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

else:print('Yes')
Buggy code:
s=input()
l=set(s)
if(len(s)==1):
    print("No")
else:
    print("Yes")

Fixed code:
s=input()
l=set(s)
if(len(l)==1):
    print("No")
else:
    print("Yes")
Buggy code:
s = input()

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


Fixed code:
s = input()

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

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

Fixed code:
s = str(input())
 
if s == "AAA" or s == "BBB":
  print('No')
else:
  print('Yes')
Buggy code:
a = input()
if a == "AAA":
  print("No")
if b == "BBB":
  print("No")
else:
  print("Yes")

Fixed code:
a = input()
if a == "AAA":
  print("No")
else:
  if a == "BBB":
    print("No")
  else:
    print("Yes")
Buggy code:
s = list(input().split())

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

Fixed code:
s = list(input())

if s[0] == s[1] and s[1] == s[2]:
  print('No')
else:
  print('Yes')
Buggy code:
def A():
    S = input()
    s = "Yes"
    if S=="AAA" or S=="BBB":
        s = "No"
    return s


if __name__ == '__main__':
    A()

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


if __name__ == '__main__':
    A()
Buggy code:
comp = input()
if comp.count('A') == 3 or comp.count('A') == 3:
  print("No")
else:
  print("Yes")

Fixed code:
comp = input()
if comp.count('A') == 0 or comp.count('A') == 3:
  print("No")
else:
  print("Yes")
Buggy code:
chaine = input()
repA = 0
repB = 0

for i in chaine:
  if i=='A':
    repA += 1 
  else: 
    repB += 1 

if repB==3 or repA==3:
  print("No")
else:
  print("yes")

Fixed code:
chaine = input()
repA = 0
repB = 0

for i in chaine:
  if i=='A':
    repA += 1 
  else: 
    repB += 1 

if repB==3 or repA==3:
  print("No")
else:
  print("Yes")
Buggy code:
string = str(input())
if ( (string[0]=='A' or string[1]=='A' and string[2]=='A') and (string[0]=='B' or string[1]=='B' and string[2]=='B')):
	print('Yes')
else:
	print('No')

Fixed code:
string = str(input())
if ( (string[0]=='A' or string[1]=='A' or string[2]=='A') and (string[0]=='B' or string[1]=='B' or string[2]=='B')):
	print('Yes')
else:
	print('No')
Buggy code:
S=input()
if(S[0]==S[1]==S[2]):
  print("Yes")
else:
  print("No")

Fixed code:
S=input()
if(S[0]==S[1]==S[2]):
  print("No")
else:
  print("Yes")
Buggy code:
S = input()
cnt = 0
for i in len(S):
  if S[i] == 'A':
    cnt = cnt +1

if cnt == 3 or cnt == 0:
  print('No')
else:
  print('Yes')

Fixed code:
S = input()
cnt = 0
for i in range(3):
  if S[i] == 'A':
    cnt = cnt +1
 
if cnt == 3 or cnt == 0:
  print('No')
else:
  print('Yes')
Buggy code:
s = input()
if s == 'AAA' or s == 'BBB':
  print('No')
  
  else:
    print('Yes')

Fixed code:
s = input()

if s == "AAA" or s == "BBB":
    print("No")
else:
    print("Yes")
Buggy code:
x = input()
print(["Yes","No"][x == "AAA" | x == "BBB"])

Fixed code:
x = input()
print(["Yes","No"][(x == "AAA") | (x == "BBB")])
Buggy code:
S = input()
print("No" if S.count(A) == 3 or S.count(B)  ==3 else "Yes")

Fixed code:
S = input()
print("No" if S.count("A") == 3 or S.count("B")  ==3 else "Yes")
Buggy code:
a = input()
if a == "AAA" or b == "BBB":
  print("No")
else:
  print("Yes")

Fixed code:
a = input()
if a == "AAA" or a == "BBB":
  print("No")
else:
  print("Yes")
Buggy code:
s = input()
if s == 'AAA':
	print('Yes')
if s == 'BBB'
	print('Yes')
else:
	print('No')
    


Fixed code:
s = input()
if s =="AAA" or s == "BBB":
    print("No")
else:
    print("Yes")
Buggy code:
# -*- coding: utf-8 -*-

import sys

def prob_a(args):
    s = args[1]
    chars = list(s)
    tmpc = chars[0]
    for c in chars[1:]:
        if c == tmpc:
            continue
        else:
            print('Yes')
            return 0
    print('No')

if __name__ == '__main__':
    args = input()
    prob_a(args)


Fixed code:
# -*- coding: utf-8 -*-

import sys

def prob_a(s):
    chars = list(s)
    tmpc = chars[0]
    for c in chars[1:]:
        if c == tmpc:
            continue
        else:
            print('Yes')
            return 0
    print('No')

if __name__ == '__main__':
    s = input()
    prob_a(s)
Buggy code:
if input() == ("AAA" or "BBB"):
    print("No")
else:
    print("Yes")

Fixed code:
S = input()

if S == 'AAA' or  S == 'BBB':
    print('No')
else:
    print('Yes')
Buggy code:
s = input()
if s == 'AAA' or 'BBB':
    ans = 'Yes'
else:
    ans = 'No'
print(ans)

Fixed code:
s = input()
if s == 'AAA' or s == 'BBB':
    ans = 'No'
else:
    ans = 'Yes'
print(ans)
Buggy code:
def resolve():
    import sys

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

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

Fixed code:
def resolve():
    import sys

    input = sys.stdin.readline




    s = input().rstrip()

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

resolve()
Buggy code:
s=input()
if s[0].count == 3:
  print("No")
else:
  print("Yes")

Fixed code:
s=input()
if s.count(s[0]) == 3:
  print("No")
else:
  print("Yes")
Buggy code:
S = str(Input())
if S.count('AB') is 0 and S.count('BA') is 0:
    print('No')
else:
    print('Yes')

Fixed code:
S = str(input())
if S.count('AB') is 0 and S.count('BA') is 0:
    print('No')
else:
    print('Yes')
Buggy code:
S = input()

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

Fixed code:
S=input()
if S=="AAA" or S=="BBB":
    print("No")
else:
    print("Yes")
Buggy code:
l = ['AAA', 'BBB']
if input() in l:
  print('Yes')
else:
  print('No')

Fixed code:
l = ['AAA', 'BBB']
if input() in l:
  print('No')
else:
  print('Yes')
Buggy code:
s=input()
if s[0]==s[1]==s[2] or =s[0]==s[1]==s[2]:
  print("No")
else:
  print("Yes")

Fixed code:
s=input()
if s[0]==s[1]==s[2] or s[0]==s[1]==s[2]:
  print("No")
else:
  print("Yes")
Buggy code:
if len(set(input()))==1:
  print('Yes')
else:
  print('No')

Fixed code:
if not len(set(input()))==1:
  print('Yes')
else:
  print('No')
Buggy code:
buses = input()
first = buses[0]
count = 0
for i in buses:
	if i == first:
      count += 1
if count == len(buses):
  print("No")
else:
  print("Yes")

Fixed code:
buses = input()
first = buses[0]
count = 0
for i in buses:
	if (i == first):
    	   count += 1
if count == len(buses):
	print("No")
else:
	print("Yes")
Buggy code:
s = input()
if s[0]==s[1] and S[0]==s[2]:
  print('No')
else:
  print('Yes')

Fixed code:
s=input()
if s[0]==s[1] and s[0]==s[2]:
  print("No")
else:
  print("Yes")
Buggy code:
print('No' if input()=='AAA' or 'BBB' else 'Yes')

Fixed code:
s=input()
print('No' if s=='AAA' or s=='BBB' else 'Yes')
Buggy code:
S = input()
c = S.count('A') 
if s == 3 or s == 0:
  print('No')
else:
  print('Yes')

Fixed code:
S = input()
c = S.count('A') 
if c == 3 or c == 0:
  print('No')
else:
  print('Yes')
Buggy code:
i=input();'YNeos'[i=='AAA' or i=='BBB'::2]

Fixed code:
i=input();print('YNeos'[i=='AAA' or i=='BBB'::2])
Buggy code:
S = input()
if "A" ib S and "B" in S:
  print("Yes")
else:
  print("No")

Fixed code:
S = input()
if "A" in S and "B" in S:
  print("Yes")
else:
  print("No")
Buggy code:
s = input()
if s == AAA :
    print("Yes")
elif s == ABB :
    print("Yes")
elif s == AAB :
    print("Yes")
elif s == ABA :
    print("Yes")
elif s == BAA :
    print("Yes")
elif s == BBA :
    print("Yes")
elif s == BAB :
    print("Yes")
else :
    print("No")

Fixed code:
s=input()
if s == "ABB" :
    print("Yes")
elif s == "AAB" :
    print("Yes")
elif s == "ABA" :
    print("Yes")
elif s == "BAA" :
    print("Yes")
elif s == "BBA" :
    print("Yes")
elif s == "BAB" :
    print("Yes")
else :
    print("No")
Buggy code:
S = input()
print("Yes" if S == "AAA" or S == "BBB" else "No")

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

Fixed code:
S = input()
if S=="AAA" or S=="BBB":
    print("No")
else:
    print("Yes")
Buggy code:
a=int(input())
if a in ["AAA","BBB"]:
  print("No")
else:
  print("Yes")

Fixed code:
a=input()
if a in ["AAA","BBB"]:
  print("No")
else:
  print("Yes")
Buggy code:
s = input()
if s == 'AAA' or 'BBB':
	print("No")
else:
	print('Yes')


Fixed code:
s = input()
if s == "AAA" or s == "BBB":
	print ("No")
else:
	print ("Yes")
Buggy code:
S = input().split()
if len(S)==3 and S.count('A')==2 or S.count('B')==2:
    print('Yes')
else:
    print('No')

Fixed code:
S = input()
if len(S)==3 and S.count('A')==2 or S.count('B')==2:
    print('Yes')
else:
    print('No')
Buggy code:
s = str(input())

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

Fixed code:
s = str(input())

if s in ['AAA', 'BBB']:
    print('No')
else:
    print('Yes')
Buggy code:
abc=str(input())
a=abc[0]
b=abc[1]
c=abc[2]



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

Fixed code:
abc=str(input())
a=abc[0]
b=abc[1]
c=abc[2]



if a == b and b==c and c==a:
    print("No")
else:
    print("Yes")
Buggy code:
S = list(input())
if S.count('A') == 3 or S.count('A') == 0:
    print('Yes')
else:
    print('No')

Fixed code:
S = list(input())
if S.count('A') == 3 or S.count('A') == 0:
    print('No')
else:
    print('Yes')
Buggy code:
S = input()
if len(S)==3 and S.count('A')==2 or S.count('B')==2:
  print('Yes')
else
print('No')

Fixed code:
S = input()
if len(S)==3 and S.count('A')==2 or S.count('B')==2:
  print('Yes')
else:
  print('No')
Buggy code:
s = str(input())

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

Fixed code:
s = str(input())
if ("A" in s and "B" in s):
    print("Yes")
else:
    print("No")
Buggy code:
S=input()
count=0
for i in range(3):
  S[i]==S[i+1]
  count+=1
if count==2:
  print("No")
else:
  print("Yes")

Fixed code:
S=input()
count=0
for i in range(2):
  if S[i]==S[i+1]:
    count+=1
if count==2:
  print("No")
else:
  print("Yes")
Buggy code:
n=input()
if n=='AAA' or n=='BBB':
	print('No')
else:
	pritn('Yes')


Fixed code:
n=input()
if n=='AAA' or n=='BBB':
	print('No')
else:
	print('Yes')
Buggy code:
S=input()
if S = AAA or BBB:
  print("No")
else:
  print("Yes")

Fixed code:
S = input()

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

a=S[0]
b=S[1]
c=S[2]

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

Fixed code:
S=input()

a=S[0]
b=S[1]
c=S[2]

if(a==b):
  if(b==c):
    print("No")
  else:
    print("Yes")
else:
  print("Yes")
Buggy code:
S = input();

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

Fixed code:
S = input();

if S == "AAA" or S == "BBB":
  print("No");
else:
  print("Yes");
Buggy code:
s=input()
if s =='AAA' or s == 'BBB':
    print('Yes')
else:
    print('No')

Fixed code:
s=input()

if s=='AAA' or s=='BBB':
    print('No')
else:
    print('Yes')
Buggy code:
Flag =  0 
S = input()
SA = [str(c) for c in S]
#A = list(['A','A','A'])
#B = list(['B','B','B'])
S1 = SA[1]
S2 = SA[2]
S3 = SA[3]
if(S1 == S2 == S3):
    print("No")
else:
    print("Yes")

Fixed code:
Flag =  0 
S = input()
SA = [str(c) for c in S]
#A = list(['A','A','A'])
#B = list(['B','B','B'])
S1 = SA[0]
S2 = SA[1]
S3 = SA[2]
if(S1 == S2 == S3):
    print("No")
else:
    print("Yes")
Buggy code:
S=input()
if S=='AAA'or'BBB':
  print('No')
else:
  print('Yes')

Fixed code:
S=input()
if S=='AAA' or S=='BBB':
  print('No')
else:
  print('Yes')
Buggy code:
s = input()
if s == "AAA" or "BBB":
    print("No")
else:
    print("Yes")

Fixed code:
s=input()

if s=='AAA' or s=='BBB':
  print('No')
else:
  print('Yes')
Buggy code:
S=input()
station=set(S)
if len(station)>1:
    print('No')
else:
    print('Yes')

Fixed code:
S=input()
station=set(S)
if len(station)>1:
    print('Yes')
else:
    print('No')
Buggy code:
i = input()
if i == ('AAA' or 'BBB'):
  print('Yes')
else:
  print('No')

Fixed code:
i = input()
if i == 'AAA' or i== 'BBB':
  print('No')
else:
  print('Yes')
Buggy code:
s = input()

ans='No'
if s=='AAA': ans='Yes'
if s=='BBB': ans='Yes'

print(ans)


Fixed code:
s = input()

ans='Yes'
if s=='AAA': ans='No'
if s=='BBB': ans='No'

print(ans)
Buggy code:
import sys
print('Yes' if set(sys.stdin.read().strip()) >= 2 else 'No')

Fixed code:
import sys
print('Yes' if len(set(sys.stdin.read().strip())) >= 2 else 'No')
Buggy code:
#!/usr/bin/env python3

S = int(input())

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


Fixed code:
#!/usr/bin/env python3

S = str(input())

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

Fixed code:
S=list(input())
if S[0]==S[2] and S[0]==S[1]:
  print("No")

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

Fixed code:




s = input()

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

Fixed code:
s=input()
if s=="AAA" or s=="BBB":
    print("No")
else :
    print("Yes")
Buggy code:
S = input()
print("Yes" if S != "AAA" or S != "BBB" else "No")

Fixed code:
S = input()
print("No" if S == "AAA" or S == "BBB" else "Yes")
Buggy code:
s = list(input())
if s[0] == s[1] and s[1] == s[2] and s[0] == s[2]:
    print('Yes')
else:
    print('No')    


Fixed code:
s = list(input())
if s[0] == s[1] and s[1] == s[2] and s[0] == s[2]:
    print('No')
else:
    print('Yes')
Buggy code:
S = input()

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

Fixed code:
S = input()

if S[0] == S[1] == S[2]:
  print('No')
else:
  print('Yes')
Buggy code:
s=input()
if s=="AAA" or 'BBB':
  print('No')
else:
    print('Yes')

Fixed code:
s = input()
if s == "AAA" or s == "BBB" :
    print("No")
else :
    print("Yes")
Buggy code:
S = input()
if S=='AAA' or 'BBB':
    print('No')
else:print('Yes')

Fixed code:
S = input()
if S == "BBB" or S == "AAA":
    print("No")
else:
    print("Yes")
Buggy code:
def main():
    S = input()

    cnt_A, cnt_B = 0

    for i in range(len(S)):
        if S[i] == "A":
            cnt_A += 1
        else:
            cnt_B += 1

    if cnt_A == 3 or cnt_B == 3:
        print('{}'.format('No'))
    else:
        print('{}'.format('Yes'))


if __name__ == '__main__':
    main()

Fixed code:
def main():
    S = input()

    cnt_A = 0
    cnt_B = 0

    for i in range(len(S)):
        if S[i] == "A":
            cnt_A += 1
        else:
            cnt_B += 1

    if cnt_A == 3 or cnt_B == 3:
        print('{}'.format('No'))
    else:
        print('{}'.format('Yes'))


if __name__ == '__main__':
    main()
Buggy code:
states = input()

if states.find('A') < 0 or states.find('B') < 0:
    print('Yes')
else:
    print('No')

Fixed code:
states = input()
if states.find('A') < 0 or states.find('B') < 0:
    print('No')
else:
    print('Yes')
Buggy code:
S=input('S')
if S[0]==S[1] and S[1]==S[2]:
    print('No')
else:
    print('Yes')

Fixed code:
S=input()
if S[0]==S[1] and S[1]==S[2]:
    print('No')
else:
    print('Yes')
Buggy code:
S = input()
unique_n = len(set([S[0], S[1], S[2]]))

if unique_n == 1:
    ans="Yes"
else :
    ans = "No"
print(ans)

Fixed code:
S = input()
unique_n = len(set([S[0], S[1], S[2]]))

if unique_n == 1:
    ans="No"
else :
    ans = "Yes"
print(ans)
Buggy code:
s =input()
if s=='AAA' or s=='BBB:
  print('No')
else:
  print('Yes')

Fixed code:
s = input()
if s == "AAA" or s == "BBB":
  print("No")
else:
  print("Yes")
Buggy code:
s = input()
if s[0] == s[1] and s[1] == s[2]:
  print('Yes')
else :
  print('No')

Fixed code:
s = input()
if s[0] == s[1] and s[1] == s[2]:
  print('No')
else :
  print('Yes')
Buggy code:
a = input()
b = 0
c = 0
i = 0
while i < a :
    if a[i] == "A" :
        b = b + 1
    if a[i] == "B" :
        c = c + 1
    i = i + 1
if (b > 0) and (c > 0) :
    print("Yes")
else:
    print("No")

Fixed code:
a = input()
b = 0
c = 0
i = 0
while i < len(a) :
    if a[i] == "A" :
        b = b + 1
    if a[i] == "B" :
        c = c + 1
    i = i + 1
if (b > 0) and (c > 0) :
    print("Yes")
else:
    print("No")
Buggy code:
S=str(input())
if S='AAA' or S='BBB':
  print('No')
else:
  print('Yes')

Fixed code:
S=input()

if S=='AAA' or S=='BBB':
    print('No')
else:
    print('Yes')
Buggy code:
s = input()
s = split(s)
if s[0]==s[1]==s[2]:
  print("No")
else:
  print("Yes")

Fixed code:
s = input()

if s[0]==s[1]==s[2]:
  print("No")
else:
  print("Yes")
Buggy code:
s = input()
s = set(s)
if len(s) == 1:
    print('Yes')
else:
    print('No')

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

Fixed code:
s = input()
s = set(list(s))
if len(s) != 1:
    print('Yes')
else:
    print('No')
Buggy code:
S = input()
ans ='No'
if 'A' in S:
  if 'B' in S:
    S= 'Yes'
print(S)

Fixed code:
S = input()
ans ='No'
if 'A' in S:
  if 'B' in S:
    ans = 'Yes'
print(ans)
Buggy code:
s = input()
if not s[0] == s[1] == s[2]:
    print('No')
else: print('Yes')


Fixed code:
s = input()
if s[0] == s[1] == s[2]:
    print('No')
else: print('Yes')
Buggy code:
A=input()
if A == AAA or A == BBB:
  print(No)
else:
  print(Yes)

Fixed code:
A=input()
if A == "AAA" or A == "BBB":
  print("No")
else:
  print("Yes")
Buggy code:
S = input()

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

Fixed code:
S = input()

if len(set(list(S))) != 1:
    print('Yes')
else:
    print('No')
Buggy code:
s = input()
ans = 'Yes'

if s == "AAA" or a == "BBB":
  ans = "No"

print(ans)


Fixed code:
s = input()
ans = 'Yes'

if s == "AAA" or s == "BBB":
  ans = "No"

print(ans)
Buggy code:
s = input()
l = list(s)
for i in range(0,len(l)-1):
  if(l[i]!= l[i+1]):
    print("Yes")
    break()
  else:
    print("No")
  

Fixed code:
s = input()
l = list(s)
ans= "No"
for i in range(0,len(l)-1):
  if(l[i]!= l[i+1]):
    ans = "Yes"
    break
print(ans)
Buggy code:
S =list(input())
if S[0]!=S[1]:
    print("Yes")
elif S[0]=="A" and S[1]=="A" and S[2]=="A":
    print("Yes")
else: 
    print("No")

Fixed code:
S =list(input())
if S[0] =="B" and S[1]=="B" and S[2]=="B":
    print("No")
elif S[0] =="A" and S[1]=="A" and S[2]=="A":
    print("No")
else:
    print("Yes")
Buggy code:
S = input()

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

Fixed code:
S = input()
 
if S == 'AAA' or S == 'BBB':
  print('No')
else:
  print('Yes')
Buggy code:
    #n,m = list(map(int,input().split()))
    s = input()
     
    if s[0] == s[1] == s[2]:
      print('No')
    else:
      print('Yes')

Fixed code:
#n,m = list(map(int,input().split()))
s = input()

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

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

Fixed code:
s=input()
 
if s.count("A")==3 or s.count("B")==3:
	print("No")
    
else:
	print("Yes")
Buggy code:
s = input()

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


Fixed code:
s = input()

if s[0] == s[1] == s[2]:
    print("No")
else:
    print("Yes")
Buggy code:
S = input()
if S == 'AAA' or 'BBB':
  print('No')
else:
  print('Yes')

Fixed code:
S = str(input())
if S == 'AAA' or S == 'BBB':
  print('No')
else:
  print('Yes')
Buggy code:
S = input()
if S[0]==S[1]orS[1]==S[2]:
  print("Yes")
else:
  print("No")

Fixed code:
S = input()

if S[0] == S[1] == S[2]:
  print("No")
else:
  print("Yes")
Buggy code:
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().split(' ')))
    result = get_result(data)
    print(result)


Fixed code:
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)
Buggy code:
S = input()
if S[0]!=S[1] and S[0]==S[2]:
  print("Yes")
else:
  print("No")

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

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

else:
    print("Yes")
	

Fixed code:
s = input()

if "A" in s and "B" in s:
    print("Yes")
else:
    print("No")
Buggy code:
S = input()
if s[0] == S[1] and S[1] == S[2]:
  print("No")
else:
  print("Yes")
  

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

Fixed code:
S = input()
if S[0] == S[1] and S[1] == S[2]:
    print("No")
else:
    print("Yes")
Buggy code:
s = int(input())
if s in "AAA-BBB":
    print("No")
else:
    print("Yes")


Fixed code:
s = input()
if s in "AAA-BBB":
    print("No")
else:
    print("Yes")
Buggy code:
s = input()

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

Fixed code:
s = str(input())

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

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

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

Fixed code:
s=input()

if(s[0]==s[1] and s[1]==s[2]):
	print("No")
else:
	print("Yes")
Buggy code:
S = input()
if S == 'AAA' or 'BBB':
    print('No')
else:
    print('Yes')

Fixed code:
S = input()
if S == 'AAA' or S == 'BBB':
    print('No')
else :
    print('Yes')
Buggy code:
s = input()

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

Fixed code:
s = input()

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