qyliang/CodeNanoFix huggingface dataset:
Buggy code:
s=input()
if s.count("A")==3 or s.count("B")==3:
    print("Yes")
else:
    print("No")

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

print(station)
for i in range(0, len(station)-1):
    if (station[i] != station[i + 1]):
        message = 'Yes'
        break
    else:
        message = ' No'


print(message)



Fixed code:
station = list(input())
message = ""

for i in range(0, len(station)-1):
    if (station[i] != station[i + 1]):
        message = 'Yes'
        break
    else:
        message = 'No'


print(message)
Buggy code:
def InS(): return input()


def InL(): return list(map(int, input().split()))


def InI(): return int(input())


S = input()

S_list = list(S)


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

Fixed code:
def InS(): return input()


def InL(): return list(map(int, input().split()))


def InI(): return int(input())


S = input()

S_list = list(S)


if S_list[0] == S_list[1]:
    if S_list[1] == S_list[2]:
        print("No")
    else:
        print("Yes")
else:
    print("Yes")
Buggy code:
  args = input()
  print(args)
  if 'A' in args:
    if 'B' in args:
      print('Yes')
      exit()
  print('No')

Fixed code:
args = input()
if 'A' in args:
  if 'B' in args:
    print('Yes')
    exit()
print('No')
Buggy code:
s = str(input())
if s == 'AAA' or s == 'BBB':
    print('No')
print('Yes')

Fixed code:
s = str(input())
if s == 'AAA' or s == 'BBB':
    print('No')
    exit()
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 S = "BBB"):
  print("No")
else:
  print("Yes")

Fixed code:
S = input()
if(S == "AAA" or S == "BBB"):
  print("No")
else:
  print("Yes")
Buggy code:
import sys
input = sys.stdin.readline
sys.setrecursionlimit(10 ** 9)
MOD = 10 ** 9 + 7

S = list(input())

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

Fixed code:
import sys
# input = sys.stdin.readline
sys.setrecursionlimit(10 ** 9)
MOD = 10 ** 9 + 7

S = list(input())

if 1 == len(set(S)):
    print ('No')
else:
    print ('Yes')
Buggy code:
# -*- coding: utf-8 -*-
st = str(input())
while(True):
  if(st == "AAA"):
    print("Yes")
    break
  elif(st == "BBB"):
    print("Yes")
    break
  else:
    print("No")
    break
  

Fixed code:
# -*- coding: utf-8 -*-
st = str(input())
while(True):
  if(st == "AAA"):
    print("No")
    break
  elif(st == "BBB"):
    print("No")
    break
  else:
    print("Yes")
    break
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()
print("YNeos"[s != len(s) * s[0]::2])

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

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

Fixed code:
# -*- coding: utf-8 -*-
S = input()
a = "AAA"
b = "BBB"
if S == a:
    print("No")
elif S == b:
    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()
ans = 'Yes'
if S[0] != S[1]:
    ans = 'No'
elif S[1] != S[2]:
    ans = 'No'
print(ans)

Fixed code:
S = input()
ans = 'No'
if S[0] != S[1]:
    ans = 'Yes'
elif S[1] != S[2]:
    ans = 'Yes'
print(ans)
Buggy code:
S = str(input())
flag=1
if S[0]==S[1]:
    if S[1]==S[2]:
        flag=0
if flag==0:
    print('Yes')
else:
    print('No')

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


Fixed code:
if __name__ == '__main__':
    s = input()
    print("No" if s == "AAA" or s == "BBB" else "Yes")
Buggy code:
s=input()
ca=0
for i in s:
  if(i=="A"):
    ca+=1
if(ca==1 or ca==0):
  print("Yes")
else:
  print("No")

Fixed code:
s=input()
ca=0
for i in s:
  if(i=="A"):
    ca+=1
if(ca==1 or ca==2):
  print("Yes")
else:
  print("No")
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()
if S = "AAA" or "BBB":
    print("No")
else:
    print("Yes")

Fixed code:
S = input()
if S == "AAA":
    print("No")
else:
    if S == "BBB":
        print ("No")
    else:
        print("Yes")
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:
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("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:
ef S(): return input().rstrip()

def main():
    s = S()

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

if __name__ == '__main__':
    main()


Fixed code:
def S(): return input().rstrip()

def main():
    s = S()

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

if __name__ == '__main__':
    main()
Buggy code:
x = input()
if x =='AAA':
  print(No)
  elif x =='BBB':
    print(No)
    else:
      print(Yes)
      

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

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

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

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

Fixed code:
S = input()

if 'AAA' == S or 'BBB' == S:
    print('No')
else:
    print('Yes')
Buggy code:
s = int(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()
d = {"A":0,"B":0}
for i in s:
	d[i] += 1
if d["A"] == 2 and d["B"] == 1:
	print("Yes")
else:
	print("No")

Fixed code:
s = input()
d = {"A":0,"B":0}
for i in s:
	d[i] += 1
if (d["A"] == 2 and d["B"] == 1) or (d["A"] == 1 and d["B"] == 2):
	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=set(input())
n=len(S)
print("Yes" if n==1 else "No")

Fixed code:
S=set(input())
n=len(S)
print("Yes" if n>1 else "No")
Buggy code:

s = input()

for i in range(2):
    if s[i]==s[i+1] :
        print("No")
        exit()
print("Yes")


Fixed code:

s = input()

for i in range(2):
    if s[i]!=s[i+1] :
        print("Yes")
        exit()
print("No")
Buggy code:
S=input()
l = ['AAA','BBB']

if S in l:
    print('No')
if S not in l:
    print('No')

Fixed code:
S=input()
l = ['AAA','BBB']

if S in l:
    print('No')
if S not in l:
    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()

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 = list(input())
a = S.count("A")
b = S.count("B")
if a == 3 or b == 3:
  print("Yes")
else:
  print("No")

Fixed code:
S = list(input())
a = S.count("A")
b = S.count("B")
if a == 3 or b == 3:
  print("No")
else:
  print("Yes")
Buggy code:
str = input()
str_list = list(str)
 
if str_list[0] =! str_list[1]:
  print("Yes")
elif str_list[1] == str_list[1]:
  print("Yes")
else:
  print("No")

Fixed code:
str = input()
str_list = list(str)
 
if str_list[0] != str_list[1]:
  print("Yes")
elif str_list[1] != str_list[2]:
  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 = str(input())

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

Fixed code:
s = str(input())

if "B" in s and "A" in s:
    print("Yes")
else:
    print("No")
Buggy code:
S=input()
if S in 'A' and S in 'B':
    print('Yes')
else:
    print('No')

Fixed code:
S=list(input())
if 'A' in S and 'B' in S:
    print('Yes')
else:
    print('No')
Buggy code:
import sys

s = input()

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

Fixed code:
import sys

s = input()

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

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

Fixed code:
S = input()

if S == 'AAA' or S == 'BBB':
  ret = 'No'
else:
  ret = 'Yes'
print(ret)
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:
def Main(S):
    return "Yes" if 'A' in S and 'B' in S else "No"
    
def main():
    S = str(input())
    print(Main(N))

if __name__ == '__main__':
    main()

Fixed code:
def Main(S):
    return "Yes" if 'A' in S and 'B' in S else "No"
    
def main():
    S = str(input())
    print(Main(S))

if __name__ == '__main__':
    main()
Buggy code:
s=input()
s=list(s)
print(s)
if "A" not in s or "B" not in s:
  print("No")
else:
  print("Yes")

Fixed code:
s=input()
s=list(s)
if "A" not in s or "B" not in s:
  print("No")
else:
  print("Yes")
Buggy code:
n=input()
cnta=0
cntb=0
for e in n:
  if e=="A":
    cnta+=1
  elif e=="B":
    cntb+=1
if cnta==3 or cntb==3:
  print('Yes')
else:
  print('Yes')

Fixed code:
n=input()
cnta=0
cntb=0
for e in n:
  if e=="A":
    cnta+=1
  elif e=="B":
    cntb+=1
if cnta==0 or cntb==0:
  print('No')
else:
  print('Yes')
Buggy code:
x=input()

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

Fixed code:
x=input()

if x=='AAA' or x=='BBB':
    print('No')
else :
    print('Yes')
Buggy code:
def yesno(S)
S=int(input())
if S=='AAA' or S=='BBB':
  return('No')
else:
  return('Yes')
print(yesno(S))
  

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

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

Fixed code:
word = input()

if word[0:1] == word[1:2] and word[0:1] == word[2:] :
    print("No")
    
else : print("Yes")
Buggy code:
print('Yes'if input() in ['AAA', 'BBB'] else 'No')

Fixed code:
print('No'if input() in ['AAA', 'BBB'] else 'Yes')
Buggy code:
s = input()
print('Yes' if len(set(s)==2 else 'No')

Fixed code:
s = input()

print("Yes" if len(set(s)) == 2 else "No")
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:
a = list(input().count("A"))
if a = 3:
  print("No")
elif a = 0:
  print("No")
else:
  print("Yes")

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

Fixed code:
s = input()
if s.count(s[0]) == 3:
  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 = int(input())

if A in 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:
str = input()

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

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


Fixed code:
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')
Buggy code:
s = input()

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

Fixed code:
s = input()

if s == "BBB" or s == "AAA": print("No")
else: print("Yes")
Buggy code:
a=input()
if a=="AAA" or "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()
flag = 0

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

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

Fixed code:
s = input()
flag = 0

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

if flag ==1 :
    print("Yes")
else:
    print("No")
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]==s[2]:
    print('No')
else:
    print('Yes')
Buggy code:
S = input()
if S =="AAA" or "BBB":
    print("Yes")
else:
    print("No")

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

Fixed code:
s = input()

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

Fixed code:
def judge(S):
  if S=="AAA" or S=="BBB":
    return "No"
  else: 
    return "Yes"
S=input()
print(judge(S))
Buggy code:
N = input()
l = list(N)
if(l[0]==l[1]):
    if(l[1]==l[2]):
        print("No")
else:
    print("Yes")

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


Fixed code:
s = list(input())

if s[0] == s[1] == s[2]:
    print('No')
else:
    print('Yes')
Buggy code:
X = input()
Y = X.count("A")
Z = X.count("B")
if (Y == 3 or X ==3):
  print("Yes")
else
  print("No")

Fixed code:
X = input()
Y = X.count("A")
Z = X.count("B")
if (Y == 3 or Z == 3):
  print("No")
else:
  print("Yes")
Buggy code:
# coding: utf-8
import re

S = input()
# print(S)

if len(re.findall(("AB"or"BA"), S))>0:
    print('Yes')
else:
    print('No')


Fixed code:
# coding: utf-8
# import re

S = input()
# print(S)

# if len(re.findall(("AB"or"BA"), S))>0:
#     print('Yes')
# else:
#     print('No')

if "AB" in S or "BA" in S:
    print('Yes')
else:
    print('No')
Buggy code:
s = list(input())
d = {x for x in s}

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

Fixed code:
d = list(input())

s = {i for i in d}

if len(s) == 1:
  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 == 'BBB' or s == 'AAA':
    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 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:
S = list(input())
if S[0] == S[1] & S[1] == S[2]:
  print('No')
else:
  print("Yes")

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

s1 = sta[0]
s2 = sta[1]
s3 = sta[2]

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

Fixed code:
sta = input()

s1 = sta[0]
s2 = sta[1]
s3 = sta[2]

if s1 == s2 and s2 == s3:
    print("No")
else:
    print("Yes")
Buggy code:
bus = input()

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

Fixed code:
bus = input()
if not( 'A' in bus):
  print( 'No')
elif not( 'B' in bus):
  print( 'No' )
else:
  print( 'Yes' )
Buggy code:
print("YNeos"[len(set(input()))-1::2])

Fixed code:
print("YNeos"[2-len(set(input()))::2])
Buggy code:
x = set(list(input()))

print('Yes' if len(x)==1 else 'No')

Fixed code:
x = set(list(input()))
print('No' if len(x)==1 else 'Yes')
Buggy code:
unkoujyokyo=input()
if unkoujyokyo == 'AAA':
  print('Yes')
elif unkoujyokyo == 'BBB':
  print('Yes')
else:
  print('No')

Fixed code:
unkoujyokyo=input()
if unkoujyokyo == 'AAA':
  print('No')
elif unkoujyokyo == 'BBB':
  print('No')
else:
  print('Yes')
Buggy code:
S = str(input())
if S[0]==S[1] and S[1]==S[2]:
  print('Yes')
else:
  print('No')

Fixed code:
S = str(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('Yes')
else:
  print('No')

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:
a = input()
if a = 'AAA' or b = 'BBB':
  print('Yes')
else:
  print('No')

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

for i in s:
  if s == 'A':
    vis_a = 1
  if s == 'B':
    vis_b = 1

if vis_a and vis_b:
  print("Yes")
else
  print("No")

Fixed code:
s = input()
vis_a = 0
vis_b = 0

for i in s:
  if i == 'A':
    vis_a = 1
  if i == 'B':
    vis_b = 1

if vis_a and vis_b:
    print("Yes")
else:
    print("No")
Buggy code:
value = input()
if value == "AAA" or "BBB":
  print("No")
 else:
  print("Yes")

Fixed code:
value = input()

if value == "AAA" or value == "BBB":
  print("No")
else:
  print("Yes")
Buggy code:
i=input()
j=i[0]
k=0

for n in range(2):
  if i[n+1]!=j:
	print('Yes')
	k=1
  
if k=0:
  print('No')

Fixed code:
i=input()
j=i[0]
k=0

for n in range(2):
	if i[n+1]!=i[0]:
		k=1
if k==0:
	print('No')
else:
	print('Yes')
Buggy code:
S = input()
ans = 'Yes'
if S = 'AAA' or S = '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()
same=["AAA","BBB"]
if S in same:
    print("Yes")
else:
    print("No")

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

a = s[0]
for i in range(1, 3) :
  print(s[i])
  if(s[i] != a) :
    print("Yes")
    exit()
print("No")

Fixed code:
s = input()

a = s[0]
for i in range(1, 3) :
  if(s[i] != a) :
    print("Yes")
    exit()
print("No")
Buggy code:
from sys import stdin
#T = int(stdin.readline())
S = stdin.readline()

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

Fixed code:
from sys import stdin
#T = int(stdin.readline())
S = stdin.readline().strip()

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

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

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

if a or b ==3:
    print("No")

else:
    print("Yes")

Fixed code:
s = input()
a = int(s.count("A"))
b = int(s.count("B"))

if a == 3 or b == 3:
    print("No")

else:
    print("Yes")
Buggy code:
S = input()
g=input()
f = list(g)
print(f)
h =set(f)
k = list(h)
if len(k)==1:
  print('Yes')
else :
  print('No')

Fixed code:
g=input()
f = list(g)
h =set(f)
k = list(h)
if len(h)==1:
  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 set(S) == 2:
    print("Yes")
else:
    print("No")

Fixed code:
S = input()
if len(set(S)) == 2:
    print("Yes")
else:
    print("No")
Buggy code:
a,b,c = input()

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


Fixed code:
a,b,c = input()
if a==b==c:
	print('No')
else:
	print('Yes')
Buggy code:
A = set(list(input()))
print(A)
if len(A) == 1:
    print("No")
else:
    print("Yes")


Fixed code:
A = set(list(input()))

if len(A) == 1:
    print("No")
else:
    print("Yes")
Buggy code:
s = input()
if s=="AAA" | s=="BBB":
    print("No")
else: 
    print("Yes")

Fixed code:
s = input()
if (s in "AAA") | (s in "BBB"):
    print("No")
else: 
    print("Yes")
Buggy code:
s = set(list(input()))
if s == 1:
  print("No")
else:
  print("Yes")

Fixed code:
s = set(list(input()))
if len(s) == 1:
  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":
    print("No")
else:
    if S == "BBB":
        print ("No")
    else:
        print("Yes")
Buggy code:
S = [x for x in input()]
if 'A' in S and 'B' in S:
  print("YEs")
else:
  print("No")

Fixed code:
S = [x for x in input()]
if 'A' in S and 'B' in S:
    print("Yes")
else:
    print("No")
Buggy code:
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 'BBB':
        print("Yes")
    else:
        print('No')


if __name__ == '__main__':
    main()


Fixed code:
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()
Buggy code:
S = input()

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

Fixed code:
S=str(input())
if S=="AAA" :
    print("No")
elif 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()
print('No' if S=='AAA' or S=='BBB' else 'Yes')
Buggy code:
a=input()
if a=='AAA'or'BBB':
  print(No)
else:
  print(Yes)

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