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.



Sample input:
ABA


Sample output:
Yes

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
S = [x for x in input()]
if 'A' in S and 'B' in S:
  print("YEs")
else:
  print("No")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
if __name__ == '__main__':
    s = input()
    print("no" if s == "AAA" or s == "BBB" else "yes")

Submission status: Wrong Answer

Solution code:
S = input()
if len(S)==3 and S.count('A')==2 or S.count('B'):
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
str1 = str(input())
if str1 == 'AAA' or str1 == 'BBB':
	print('YES')
else:
	print('NO')

Submission status: Wrong Answer

Solution code:
h1=input()

if h1 == 'AAA' and h1 == 'BBB':
  print ('no')
else :
   print ('yes')

Submission status: Wrong Answer

Solution code:
n=input()
if(len(set(n))==1):
	print("NO")
else:
	print("YES")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
from sys import stdin
#T = int(stdin.readline())
S = stdin.readline().strip()
print(S)
if S == "AAA" or S == "BBB":
    print('No')
else:
    print('Yes')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
s = input()

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

elif s == 'AAB' or 'ABB' or 'BAA' or 'BBA' or 'BAB' or'ABA':
	print('Yes')

Submission status: Wrong Answer

Solution code:
from sys import stdin
#T = int(stdin.readline())
S = stdin.readline().strip()
print(S)
if S == "AAA" or S == "BBB":
    print("No")
else:
    print("Yes")

Submission status: Wrong Answer

Solution code:
S=input()
flg=0
for s in S:
    if s==S[0]:
        flg +=1
    else:
        print("yes")
        break
if flg == 3:
    print("No")

Submission status: Wrong Answer

Solution code:
str = input()
if str.count('A') % 2 == 1:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
S = 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')

Submission status: Wrong Answer

Solution code:
list = str(input())

if list is "AAA" or list is "BBB" or len(list) is not 3:
    print("No")
else : 
    print("Yes")

Submission status: Wrong Answer

Solution code:
s = input()

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

else:
	print('Yes')

Submission status: Wrong Answer

Solution code:
S=input()
for s in S:
    if s==S[0]:
        flg=0
    else:
        print("yes")
        break
if flg == 0:
    print("No")

Submission status: Wrong Answer

Solution code:
S = input()
 
if S == 'AAA' or 'BBB':
    print('No')
if S == 'AAB' or 'ABA' or 'ABB' or 'BAA' or 'BBA' or 'BAB':
    print('Yes')

Submission status: Wrong Answer

Solution code:
tmp = ""

for s in list(input()):
    if tmp == "":
        tmp = s
        continue
    if tmp != s:
        print("YES")
        exit()

print("NO")

Submission status: Wrong Answer

Solution code:
S = input()

if S.count('A') == 3:
    print('No')
else:
    print('Yes')

Submission status: Wrong Answer

Solution code:
s = str(input())
S = list(s)
ans = 1

if(S[0] == 'A'):
    if(S[1] == 'A'):
        if(S[2] == 'A'):
            ans = 0
        else:
            ans = 1
    else:
        ans = 1
else:
    ans = 1

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
list = str(input())

if list is "AAA" or list is "BBB" :
    print("No")
else : 
    print("Yes")

Submission status: Wrong Answer

Solution code:
list = str(input())

if list is not "AAA" and list is not "BBB" :
    print("No")
else : 
    print("Yes")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
list = list(input())

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

Submission status: Wrong Answer

Solution code:
S = input()

if "AA" in S or "BB" in S:
    print("No")
else:
    print("Yes")

Submission status: Wrong Answer

Solution code:
SSS = input()
KKK = "NO"
NNN = []
NNN = list(SSS)
if NNN[0] != NNN[1] or NNN[0] != NNN[2]:
    KKK = "YES"
print(KKK)

Submission status: Wrong Answer

Solution code:
value = input()
if value == "AAA" or "BBB" or "ABB" or "BAA":
  print("No")
else:
  print("Yes")

Submission status: Wrong Answer

Solution code:
S=input()
for s in S:
    if s==S[0]:
        flg=0
    else:
        print("yes")
        flg=1
        break
if flg == 0:
    print("No")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
S = input()
if len(S) == 1:
    print("No")
else:
    print("Yes")

Submission status: Wrong Answer

Solution 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")

Submission status: Wrong Answer

Solution code:
str = input()
str_list = list(str)
 
if str_list[0] == str_list[2]:
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

Solution code:
S = input()

S = 'BAB'

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
S = input()

S = 'BAB'

if S == 'AAA' or S== 'BBB':
    print("NO")
    
else:
    print("YES")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
list = list(input())

if list[0] != list[1] and list[1] != list[2]:
    print('YES')
elif list[0] != list[2] and list[1] != list[2]:
    print('YES')
else :
    print("NO")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
if __name__ == '__main__':
    i = input()
    print("yes" if len(set(i)) != 1 else "no")

Submission status: Wrong Answer

Solution code:
S = list(input())
if S.count('A')==2 or S.count('B')==2:
    if S[0]==S[2]:
        print('Yes')
    else:
        print('No')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
S = input()

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

Submission status: Wrong Answer

Solution code:
S = str(input())

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

Submission status: Wrong Answer

Solution code:
N = input()
l = list(N)
if(l[0]==l[1]):
    if(l[1]==l[2]):
        print("NO")
else:
    print("YES")

Submission status: Wrong Answer

Solution code:
value = input()
if value == "AAA" or "BBB" or "ABA" or "BAB":
  print("No")
else:
  print("Yes")

Submission status: Wrong Answer

Solution code:
# To add a new cell, type '# %%'
# To add a new markdown cell, type '# %% [markdown]'
lst = input().split()
# %%
one = lst[0][0]
two = lst[0][1]
three = lst[0][2]


# %%
one_two = one == two
two_three = two == three
three_one = three == one




# %%
if any([one_two, two_three, three_one]):
    print('Yes')
else:
    print('No')


# %%

Submission status: Wrong Answer

Solution code:
S = input()

zikkou= [0,2]

isto = False

for n in zikkou:
    if S[n:n+1] == "AB" or S[n:n+1] == "BA":
       isto = True


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

Submission status: Wrong Answer

Solution code:
N = input()
l = list(N)
if(l[0]==l[1]):
  if(l[1]==l[2]):
    print("NO")
  else:
    print("YES")

Submission status: Wrong Answer

Solution code:
inputs = list(input())
print(inputs)
if inputs[0] == inputs[1] and inputs[1] == inputs[2]:
	print('No')
else:
	print('Yes')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
S = input()
if S == 'AAA' and S == 'BBB':
  print('No')
else:
  print('No')

Submission status: Wrong Answer

Solution code:
#A

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

Submission status: Wrong Answer

Solution code:
s = input()

a = False
for i in range(len(s)):
    if s[i] == "A":
        a = True
        break

b = False
for i in range(len(s)):
    if s[i] == "B":
        b = True
        break

print(a and b)

Submission status: Wrong Answer

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

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

else:
    print("Yes")

Submission status: Wrong Answer

Solution code:
S=input("")

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

Submission status: Wrong Answer

Solution code:
# coding: utf-8
import re

S = input()
# print(S)

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

Submission status: Wrong Answer

Solution 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')

Submission status: Wrong Answer

Solution code:
if __name__ == '__main__':
    (a,b,c) = input()
    print("no" if a == b or b == c else "yes")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution 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")

Submission status: Wrong Answer

Solution code:
S = input()
if S[0] != S[1] or S[1] != S[2]:
  print('Yes')

Submission status: Wrong Answer

Solution code:
S=input()

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

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

Submission status: Wrong Answer

Solution code:
n=input()
n=set(n)
if(len(n)==2):
	print("YES")
else:
	print("NO")

Submission status: Wrong Answer

Solution code:
S=str(input())

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

Submission status: Wrong Answer

Solution code:
text = input()
if text == "AAA" or text == "BBB":
    print("NO")
else:
    print("YES")

Submission status: Wrong Answer

Solution code:
S=str(input())

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

Submission status: Wrong Answer

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

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

else:
    print("Yes")

Submission status: Wrong Answer

Solution code:
# coding: utf-8
 
 
def main():
 
    in_data = input()
 
    if (in_data == 'AAA' or
        in_data == 'BBB'):
        print('NO')
    else:
        print('YES')
 
    return 0
  
  
if __name__ == '__main__':
    main()

Submission status: Wrong Answer

Solution code:
string = input()
if string == "AAA" or string == "BBB":
    print("NO")
else:
    print("YES")

Submission status: Wrong Answer

Solution code:
if __name__ == '__main__':
    (a,b,c) = input()
    print("no" if a == b == c else "yes")

Submission status: Wrong Answer

Solution code:
a = list(input())
print(a)
if a[0] == a[1] and a[1] == a[2]:
    print('No')
else:
    print('Yes')

Submission status: Wrong Answer

Solution code:
s=input()
if s=="ABA" or s=="BAB":
    print("Yes")
else :
    print("No")

Submission status: Wrong Answer

Solution code:
L=list(input())
print("No" if L.count("A")==0 and L.count("B")==0 else "Yes")

Submission status: Wrong Answer

Solution code:
import collections

s = input()
s_set = set(s)

Submission status: Wrong Answer

Solution code:
sta = input()

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

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

Submission status: Wrong Answer

Solution 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")

Submission status: Wrong Answer

Solution code:

n=input()
x=n.count("A")
y=n.count("B")
if(x!=0 and  y!=0):
	print("YES")
else:
	print("NO")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
s = input()
res = "Yes" if len(set(s)) < 3 else 'No'
print(res)

Submission status: Wrong Answer

Solution code:
# coding: utf-8
import re

S = input()
# print(S)

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

Submission status: Wrong Answer

Solution code:
n = list(input())
s = 'S'
ans = 'NO'
for i in range(3):
  s = n[i]
  if i <= 1:
    if s != n[i+1]:
      ans = 'YES'
print(ans)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
S = input()

zikkou= [0,2]

isto = False

for n in zikkou:
    if S[n:n+1].count("A") == 1 or S[n:n+1].count("B") == 1:
       isto = True


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

Submission status: Wrong Answer

Solution code:
value = input()
if value == "AAA" or "BBB":
  print("No")
else:
  print("Yes")

Submission status: Wrong Answer

Solution code:
s = str(input())

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
L=list(input())
print("No" if L.count("A")==0 else "Yes")

Submission status: Wrong Answer

Solution code:
S=input()

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

Submission status: Wrong Answer

Solution code:
s=list(input())
print('Yes' if len(s) != len(set(s)) else 'No')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a = input()

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
a=str(input())

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

Submission status: Wrong Answer

Solution code:
S = input()

L = [S[i] for i in range(3)]

T = "No"
for i in range(3):
  if S[i] not in L:
    T = "Yes"
print(T)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
s = input().rstrip()

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

Submission status: Wrong Answer

Solution code:
s = input()

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

Submission status: Wrong Answer

Solution code:
s = input()
if len(set(s)) == 1:
    print(False)
else:
    print(True)

Submission status: Wrong Answer

Solution code:
print("YES" if input() in "A" and input() in "B" else "NO")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
S=input()
a=[]
b=[]
for i in range(3):
  if S[i]=="A":
    a+=[S[i]]
  else:
    b+=["B"]
if len(a)==3 or len(b)==3:
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

Solution code:
s = input()

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import sys
input = sys.stdin.readline


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


if __name__ == "__main__":
    main()

Submission status: Wrong Answer

Solution 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")

Submission status: Wrong Answer

Solution code:
a = input()
c = 'No'
for i in range(2):
  if a[i] == a[i+1]:
    c = 'Yes'
    break
print(c)

Submission status: Wrong Answer

Solution code:
#coding utf-8

S=str(input())

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
#akash mandal: jalpaiguri government engineering college
#take a look on special cases: test cases

def ii(): return int(input())
def mii(): return map(int,input().split())
def lmii(): return list(mii())


def main():
    s=input()
    if(len(set(list(s)))==1):
        print("NO")
    else:
        print("YES")
        
        
                
        
        
        
if __name__=="__main__": 
    main()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
S=input()
B,A=0,0
for i in range(3):
    if S[i]=="A":
        A+=1
    else:
        B+=1
print("Yes" if A==2 or B==2 else "NO")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
print("Yes" if input() in "A" else "No")

Submission status: Wrong Answer

Solution code:
s = list(input())

if s.count('A') > 0 and s.count('B') > 0:
  print('YES')
else:
  print('No')

Submission status: Wrong Answer

Solution code:
# li = [[0] * 4 for i in range(3)]

# A = list.map(int, input().split())


A = input()

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

Submission status: Wrong Answer

Solution code:
import sys
read = sys.stdin.read
readline = sys.stdin.readline
readlines = sys.stdin.readlines

def main():
    s = readline().strip()

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



if __name__ == "__main__":
    main()

Submission status: Wrong Answer

Solution code:
import sys
input = sys.stdin.readline

s = str(input())
tmp = s[0]

for c in s:
    if tmp != c:
        print("Yes")
        exit()
else:
    print("No")

Submission status: Wrong Answer

Solution code:
S=input()

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

Submission status: Wrong Answer

Solution code:
s = set(input())
if(len(s) == 2):
    print('Yes')
else:
    print('NO')

Submission status: Wrong Answer

Solution code:
s = input()

if (s[0]==s[1] and s[1]==s[2]):
    print("NO")
else:
    print("YES")

Submission status: Wrong Answer

Solution code:
print("YES" if input() in "A" else "NO")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
def a(s):

    return "Yes" if s.count("A") != 0 else "No"


def main():
    s = str(input())
    print(a(s))

if __name__ == '__main__':
    main()

Submission status: Wrong Answer

Solution code:
#!/usr/bin/env python3
# -*- coding: utf-8 -*-


def main():
    S = input()
    print('Yes'if 1 < S.count('A') < 3else 'No')


if __name__ == "__main__":
    main()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
x = set(list(input()))

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

Submission status: Wrong Answer

Solution code:
s = input()

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
s = input()
if len(sorted(s)) == 1:
  print("No")
else:
  print("Yes")

Submission status: Wrong Answer

Solution code:
s = input()

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

print(ans)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import sys
range = xrange
input = raw_input

S = input()
if all(c == 'B' for c in S):
    print 'No'
else:
    print 'Yes'

Submission status: Wrong Answer

Solution code:
import sys, bisect, math, itertools, string, queue, copy
# import numpy as np
# import scipy
from collections import Counter,defaultdict,deque
from itertools import permutations, combinations
from heapq import heappop, heappush
# input = sys.stdin.readline
sys.setrecursionlimit(10**8)
mod = 10**9+7
def inp(): return int(input())
def inpm(): return map(int,input().split())
def inpl(): return list(map(int, input().split()))
def inpls(): return list(input().split())
def inplm(n): return list(int(input()) for _ in range(n))
def inplL(n): return [list(input()) for _ in range(n)]
def inplT(n): return [tuple(input()) for _ in range(n)]
def inpll(n): return [list(map(int, input().split())) for _ in range(n)]
def inplls(n): return sorted([list(map(int, input().split())) for _ in range(n)])

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

Submission status: Wrong Answer

Solution code:
S = input()

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

Submission status: Wrong Answer

Solution code:

S=input()

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
s = input()
if 'A' in s and 'B' in s:
  print("YES")
else:
  print("NO")

Submission status: Wrong Answer

Solution code:
import sys
input = sys.stdin.readline

S = input().strip()

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

Submission status: Wrong Answer

Solution code:
s=input()
if s.count('A')>=2 or s.count('B')>=2:
  print('Yes')
else:
  print('No')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
A = set(list(input()))
print(A)
if len(A) == 1:
    print("No")
else:
    print("Yes")

Submission status: Wrong Answer

Solution code:
s = input()

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

Submission status: Wrong Answer

Solution code:
s=input()

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
S = input()
a = list(set(S))
print("Yes" if len(a) != 1 else "NO")

Submission status: Wrong Answer

Solution code:
S = input()

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

Submission status: Wrong Answer

Solution code:
import sys
input = sys.stdin.readline
S = input()
if S == "AAA" or S == "BBB" :
    print("No")
else :
    print("Yes")

Submission status: Wrong Answer

Solution code:
S = input()
print("Yes" if S.count("A")*S.count("B") > 0 else "NO")

Submission status: Wrong Answer

Solution code:
S = input().rstrip()

if 'AB' in S or 'BA' in S:
    print('YES')
else:
    print('NO')

Submission status: Wrong Answer

Solution code:
S = input()

if S == 'ABA':
    print('Yes')
elif S == 'BAB':
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:

import collections


class Solution:
    def solve(self, string):
        counts = collections.Counter(string)
        return counts["A"] > 0 and counts["B"] > 0


sol = Solution()

string = input().strip()

print(sol.solve(string))

Submission status: Wrong Answer

Solution code:
S = input()

cnt = 0

for c in S:
    if c == "A":
        cnt += 1

if c == 0 or c == 3:
    print("No")
else:
    print("Yes")

Submission status: Wrong Answer

Solution code:
A = set(input().split())
if len(A) == 1:
    print("No")
else:
    print("Yes")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
s = input()

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

Submission status: Wrong Answer

Solution code:
s = input()
if s == 'AAA' or s == 'ABA':
    print('No')
else:
    print('Yes')

Submission status: Wrong Answer

Solution code:
S=input();
x=S.find("AB")+S.find("BA")
print("Yes" if x>0 else "No")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import sys
input=sys.stdin.readline
s=input().rstrip()
if s=='AAA' or 'BBB':
    print('No')
else:
    print('Yes')

Submission status: Wrong Answer

Solution code:
s = input()

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

Submission status: Wrong Answer

Solution code:
s=input()
if s=="aaa" or s=="bbb":
  print("No")
else:
  print("Yes")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:


s = input()

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

Submission status: Wrong Answer

Solution code:
import sys
input = sys.stdin.readline
S = input()
if S == "AAA" or S == "BBB" :
    print("Yes")
else :
    print("No")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
s = input()
if "A" in s and "B" in s:
  print("YES")
else:
  print("NO")

Submission status: Time Limit Exceeded

Solution code:
sta = input("station:")

while len(sta) == 3:
    judge = ""
    count = 0
    result = ""
    for s in sta:
        if count == 0:
            judge = s
            count += 1
        else:
            if s == judge:
                result = "No"
            else:
                result = "Yes"

Submission status: Accepted

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

Submission status: Accepted

Solution code:

def atc_158a(input_value: str) -> str:
    if input_value == "AAA" or input_value == "BBB":
        return "No"
    return "Yes"


input_value = input()
print(atc_158a(input_value))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()

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

Submission status: Accepted

Solution code:
S = input()

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def sep():
    return map(int,input().strip().split(" "))
def lis():
    return list(sep())


s=input()
from collections import Counter
c=Counter(s)
if len(c.keys())>=2:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
moji = str(input())
print(("No","Yes")[("B" in moji) and ("A" in moji)])

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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