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

Submission status: Wrong Answer

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

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 "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 "A" and "B" in s:
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

Solution code:
print(('Yes', 'No')[input() in 'AAA' + 'BBB'])

Submission status: Wrong Answer

Solution code:
print(('Yes', 'No')[input() in ('AAA' + 'BBB')])

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:

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

if __name__ == "__main__":
    main()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
S = input()
if S == 'ABA' or 'BAB':
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import bisect, collections, copy, heapq, itertools, math, string
import sys
def I(): return int(sys.stdin.readline().rstrip())
def MI(): return map(int, sys.stdin.readline().rstrip().split())
def LI(): return list(map(int, sys.stdin.readline().rstrip().split()))
def S(): return sys.stdin.readline().rstrip()
def LS(): return list(sys.stdin.readline().rstrip().split())

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

if __name__ == "__main__":
    main()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:

S = str(input())

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
s=input()

if 'AAA' in s or 'BBB' in s:
    print("NO")
else:
    print("Yes")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
# ABC158
# A Station and Bus
import re
s = input()
x = s[0]
m = re.match(x+x+x,s)
if m:
    print("Yes")
    exit()
print("No")

Submission status: Wrong Answer

Solution code:
s = input()

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

Submission status: Wrong Answer

Solution code:
s = input()
if "B" and "A" in s:
  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()

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

Submission status: Wrong Answer

Solution code:
s = list(input())
d = {x for x in s}

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

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()

if s.count('A') >= 1:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

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

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()

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

Submission status: Wrong Answer

Solution code:
s=input()
a=0
b=0
for i in s:
    if(s=="A"):a+=1
    else:b+=1
if(a*b==0):print("Yes")
else:print("No")

Submission status: Wrong Answer

Solution code:
#Macで実行する時
import sys
import os
if sys.platform=="darwin":
	base = os.path.dirname(os.path.abspath(__file__))
	name = os.path.normpath(os.path.join(base, '../atcoder/input.txt'))
	sys.stdin = open(name)

l = list(input())
#print(l)
set_l = set(l)
if len(set_l)==1:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
s = input().split()
x1=s[0][0]
x2=s[0][1]
x3=s[0][2]
flag = False
A = 'A'
B = 'B'
if x1==A and x2==A and x3==A:
    flag = True
elif x1==B and x2==B and x3==B:
    flag = True
else:
    flag = False
if (flag):
    result = 'Yes'
else:
    result = 'No'
print(result)

Submission status: Wrong Answer

Solution code:
s = input().split()
x1=s[0][0]
x2=s[0][1]
x3=s[0][2]
flag = False
A = 'A'
B = 'B'
if x1==A and x2==A and x3==A:
    flag = True
elif x1==B and x2==B and x3==B:
    flag = True
else:
    flag = False
print(flag)

Submission status: Wrong Answer

Solution code:
import sys
input = sys.stdin.readline
s=input().rstrip()
if len(set(s))>1:
    print('YES')
else:
    print('NO')

Submission status: Wrong Answer

Solution code:
import sys
input = sys.stdin.readline
s=input().rstrip()
for i in range(2):
    if s[i]!=s[i+1]:
        print('YES')
        break
else:
    print('NO')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
l = ['AAA', 'BBB']
if input() in l:
  print('Yes')
else:
  print('No')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
s = input()
q = 0
for i in range(2):
  if q != 0:
    print('Yes')
    exit()
  if s[2] != s[i]:
    q += 1
    
print('No')

Submission status: Wrong Answer

Solution code:
s = input()
q = 0
for i in range(2):
  if q != 0:
    print('Yes')
    exit()
  if s[2] != i:
    q += 1
    
print('No')

Submission status: Wrong Answer

Solution code:
s = list()

S = input()

s = S

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

else:
    print('Yes')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
S = input()
if S.count('A') == 3 or S.count('B') == 3:
    print("NO")
else:
    print("YES")

Submission status: Wrong Answer

Solution code:
A = input()

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
print('Yes'if input() in ['AAA', 'BBB'] else 'No')

Submission status: Wrong Answer

Solution code:
S = input()

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

Submission status: Wrong Answer

Solution code:
s=input()
print("YNeos"[s != len(s) * s[0]::2])

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
x = len(set([x for x in input().split()]))
if (x>1):
      print('Yes')
else:
      print('No')

Submission status: Wrong Answer

Solution code:
z=[]
z2=[]
z3=[]
a=input()
z=list(a)



if (z[0]=='A') or (z[1]=='A') or (z[2]=='A'):
    z2.append('1')
    
    
if (z[0]=='B') or (z[1]=='B') or (z[2]=='B'):
    z3.append('1')
    
if len(z2)>0:
    if len(z3)>0:
        print('Yes')
else:
    print('No')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
s=len(set(input().split()))
print("YNeos"[s == 2::2])

Submission status: Wrong Answer

Solution code:
s = input()
for i in s:
  if "A" not in  i:
    print("No")
  elif "B" not in i:
    print("No")
else:
  print("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:
s = list(input())
s.sort()
print(s)
if s[0] == s[2]:
    print('No')
else:
    print('Yes')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
print('NYoe s'[len(set(input().split()))==2::2])

Submission status: Wrong Answer

Solution code:
S = input()
if S[0] ==  S[1] and S[0] == 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:
N = input()
if N in 'A' and N in 'B':
  print('Yes')
else:
  print('No')

Submission status: Wrong Answer

Solution code:
S = list(input())

if set(['A','B']) >= set(S):
  print('Yes')
else:
  print('No')
  
#ABA
#BBA
#BBB

Submission status: Wrong Answer

Solution code:
import numpy as np
import scipy.sparse as sps
import scipy.misc as spm
import collections as col
import functools as func
import itertools as ite
import fractions as frac
import math as ma
import cmath as cma
import copy as cp
import sys
def sinput(): return sys.stdin.readline().strip()
def iinput(): return int(sinput())
def imap(): return map(int, sinput().split())
def fmap(): return map(float, sinput().split())
def iarr(n=0):
    if n: return [0 for _ in range(n)]
    else: return list(imap())
def farr(): return list(fmap())
def sarr(n=0):
    if n: return ["" for _ in range(n)]
    else: return sinput().split()
def barr(n): return [False for _ in range(n)]
sys.setrecursionlimit(10**7)
MOD = 10**9 + 7; EPS = sys.float_info.epsilon
PI = np.pi; EXP = np.e; INF = np.inf

s = sarr()
flag = all(c == "A" for c in s) or all(c == "B" for c in s)
ans = "No" if flag else "Yes"
print(ans)

Submission status: Wrong Answer

Solution code:
import sys
str=input()
if str == "AAA" or str == "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 == "BBB":
  print("no")
  
else:
  print("yes")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
x = input()
if x in "A" and "B":
  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=list(input())
if S[0]==S[2] and S[0]!=S[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('No')
else: print('Yes')

Submission status: Wrong Answer

Solution code:
S=input()

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-
# 標準入力の取得
S = input()

# 求解処理
result = str()
if S == "AAA" or S == "BBB":
    result = "Yes"
else:
    result = "No"

# 結果出力
print(result)

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 != 'AAA' or S != 'BBB' else 'No')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import random
r = random.randint(1, 11)
if r > 3:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
print('Yes')

Submission status: Wrong Answer

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

if(a==3):
    print('Yes')
elif(b==3):
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import sys
from collections import Counter
def input(): return sys.stdin.readline().strip()
def mp(): return map(int,input().split())
def lmp(): return list(map(int,input().split()))

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

Submission status: Wrong Answer

Solution code:
s=input()
if len(s)==3 or len(s)==0:
  print("No")
else:
  print("Yes")

Submission status: Wrong Answer

Solution code:
print('No' if len(set(input())) == 0 else 'Yes')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
s = list(input())
ans = len(str(s))

if ans > 0:
  print("Yes")
else:
  print("No")

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()

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-
S = input()
a = "AAA"
b = "BBB"
if S == a:
    print("NO")
elif S == b:
    print("NO")
else:
    print("YES")

Submission status: Wrong Answer

Solution code:


S = input()

print("Yes" if S.count("A")==2 and S.count("B")==2 else "No")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
for n in range(0,10000):
    if n * 0.08 == n * 0.1:
        print(n)
        break
    else:
        print(-1)

Submission status: Wrong Answer

Solution code:
S = [input()]

for i in range(len(S)-1):
    if s[i] != s[i+1]:
        print("Yes")
    else:
        print("No")

Submission status: Wrong Answer

Solution code:
s = input()

if(s=="BBB" or s=="ABB" or s=="BAB" or s=="BBA"):
    print("No")
else:
    print("Yes")

Submission status: Wrong Answer

Solution code:
s = input()

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

Submission status: Wrong Answer

Solution code:
s = input()

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

Submission status: Wrong Answer

Solution code:
s=input()
if s=="BBB"and len(s)==3:
    print("No")
else:
    print("Yes")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
s=input()
if s=="AAA"or s=="AAB"or s=="ABA"or s=="BAA"or s=="BBA"or s=="BAB"or s=="ABB":
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a = input()
print('Yes' if 'A' 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:
s=input()


if s=="ABA" or s=="BBA":
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
S=[x for x in input()]
s=len(list(set(S)))

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

Submission status: Wrong Answer

Solution code:
s = input()

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

Submission status: Wrong Answer

Solution code:
s = input()

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

else:
    print("Yes")

Submission status: Wrong Answer

Solution code:
s = input()

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

else:
    print("YESA")

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()

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

Submission status: Wrong Answer

Solution code:
s =input()

for i in range(len(s)):
    if s[i] not in s:
        print('Yes')
        break
    else: 
        print('No')
        break

Submission status: Wrong Answer

Solution code:

s =input()

for i in range(len(s)):
    if s[i] in s:
        print('Yes')
        break
    else: 
        print('No')

Submission status: Wrong Answer

Solution code:
S = input()#.strip()

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
i = input()
if i[-1]==i[-2] and i[-2]==i[-3]:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

if "A" and "B" in S:
    print("Yes")
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=input()
print("YNeos"[s=="AAA" or s=="BBB"])

Submission status: Wrong Answer

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


if __name__ == "__main__":
    main()

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:
print(["Yes","No"][input() ==("BBB" or "AAA")])

Submission status: Wrong Answer

Solution code:
print(["Yes","No"][input()=="BBB"])

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
S = list(input())
if len(set(S))==2 :
    print('Yse')
else:
    print('No')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
S = list(input())

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

Submission status: Wrong Answer

Solution code:
x=input()

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import sys
s = sys.stdin.readline()
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("No")
else:
    print("Yess")

Submission status: Wrong Answer

Solution code:
a=list(input())
if a[0]==a[1]==a[2]:
	print('no')
else:
    print('yes')

Submission status: Wrong Answer

Solution code:
S = input()
if S in 'A' and S in '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('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:
str  = input()
a = False
b = False
for ch in str:
    if ch == 'A':
        a = True
    else:
        b = True
if a and b:
    print("YES")
else:
    print("NO")

Submission status: Wrong Answer

Solution code:
s = input()

num = len(set(s))  # set型に変換するとダブりが消えるので、lenで種類数がわかる

if num > 1:
    print("No")
else:
    print("Yes")

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()
if 'A' in s and 'B' in s:
    print("YES")
else:
    print("NO")

Submission status: Wrong Answer

Solution code:
# import module
import sys
import math
import numpy as np

S = input()

if S.find("A") != -1 and S.find("B") != 0:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
temp = input()

judgment1 = 'A' in temp
judgment2 = 'B' in temp

if judgment1 == True:
    if judgment2 == True:
        print("Yes")
else:
    print('No')

Submission status: Wrong Answer

Solution code:
temp = set(input())

judgment1 = 'A' in temp
judgment2 = 'B' in temp

if judgment1 == True:
    if judgment2 == True:
        print("Yes")
else:
    print('No')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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" and "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:
S = input()
if S =="AAA" or "BBB":
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
print('No' if input()=='AAA' or 'BBB' else '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();

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
x = input()

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

Submission status: Wrong Answer

Solution code:
x = list(input())

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

Submission status: Wrong Answer

Solution code:
x = input()

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

Submission status: Wrong Answer

Solution code:
s=str(input())

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

Submission status: Wrong Answer

Solution code:
S = input()
seen = set()

for s in S:
    seen.add(s)

print( True if len(seen) == 2 else False)

Submission status: Wrong Answer

Solution code:
S = input()
a = S[0]
b = S[1]
c = S[2]

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

Submission status: Wrong Answer

Solution code:
S = input()
a = S[0]
b = S[1]
c = S[2]

if a == 'A' or b == 'A' or c == 'A':
    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:
lit = str(input())
print("Yes" if "A" in lit and "B" in lit else "B")

Submission status: Wrong Answer

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