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 = [i for i in input()]
s0 = s[0]
for j in s[1:]:
  if s0 != j:
    print("No")
    exit()
  s0 = j
print("Yes")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
S = input()

if "AB" in S or "BA" in S:
  print("yes")
else:
  print("no")

Submission status: Wrong Answer

Solution code:
Si = input()

if "AB" in Si or "BA" in Si:
  print("yes")
else:
  print("no")

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 = str(input())

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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()
x = s.count('A') ; y = s.count('B')
if (x == 1 and y == 2) or (x == 2 and y == 1):
    print("YES")
else:
    print('NO')

Submission status: Wrong Answer

Solution code:
s = input()
if s.count(s[0]) == 3:
  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 = list(input())
if set(S) == 1:
  print("No")
else:
  print("Yes")

Submission status: Wrong Answer

Solution code:
s = input()
As = s.count("A")
Bs = s.count("B")
if As == 3 or Bs == 3:
  print("NO")
else:
  print("YES")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
S = input()

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
S = input()
ans = True
if S[0] != S[1]:
    ans = False
elif S[1] != S[2]:
    ans = False
print(ans)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
# encoding:utf-8
import copy
import random
import bisect #bisect_left　これで二部探索の大小検索が行える
import fractions #最小公倍数などはこっち
import math
import sys
import collections

mod = 10**9+7
sys.setrecursionlimit(mod) # 再帰回数上限はでdefault1000

d = collections.deque()
def LI(): return list(map(int, sys.stdin.readline().split()))

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

Submission status: Wrong Answer

Solution code:
user = str(input().upper())
for i in user:
    if user.count(i) == 2:
        pass
print("Yes")

Submission status: Wrong Answer

Solution code:
user = str(input().upper())
for i in user:
    if user.count(i) == 2:
        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:
print("No" if input() == "AAA" or "BBB" else "Yes")

Submission status: Wrong Answer

Solution code:
n=input()
a=0
for i in n:
    if i=="A":
        a+=1
if a%3!=0:
    print('Yes')
else:
    print('NO')

Submission status: Wrong Answer

Solution code:
n=input()
a=0
for i in n:
    print(i)
    if i=="A":
        a+=1
if a%3!=0:
    print('Yes')
else:
    print('NO')

Submission status: Wrong Answer

Solution code:
n=input()
a=0
for i in n:
    if i=="A":
        a+=1
if a%3==0:
    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 len(set(list(S))) == 1:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
import sys

X = sys.stdin.readline().rstrip()
if len(set(X)) == 0:
    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:
from collections import Counter
print('YES' if len(Counter(input())) > 1 else 'NO')

Submission status: Wrong Answer

Solution code:
if len(set(input()))==1:
  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 = str(input())

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
S = input().strip()
if(S[0] == S[1]):
    p = 0
else:
    p = 1
if (S[1] == S[2]):
    q = 0
else:
    q = 1
print(p + q)

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

Submission status: Wrong Answer

Solution code:
#--------------------------------------------
#ライブラリ呼び出し
import sys
import math
from math import sqrt
#--------------------------------------------

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

Submission status: Wrong Answer

Solution code:
#--------------------------------------------
#ライブラリ呼び出し
import sys
import math
from math import sqrt
input = sys.stdin.readline
#--------------------------------------------
N = str(input())
print('No') if N == "AAA" or N == "BBB"  else print('Yes')

Submission status: Wrong Answer

Solution code:
s = input()
if s.find('A') > 0 and s.find('B') > 0:
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

Solution code:
s = input()
if s.find('A') and s.find('B'):
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

Solution code:
"""
rami dior ball.
working on atcoder beginner contest 158
"""

s = input("")
s = list(s)

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

Submission status: Wrong Answer

Solution code:
s = input("")
s = list(s)

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
n = input()
 
x = n[0]
answer = True
 
for i in n:
  if x != i:
    answer = False
    
print("YES" if not answer else "NO")

Submission status: Wrong Answer

Solution code:
n = input()

x = n[0]
answer = True

for i in n:
  if x != i:
    answer = False
    
print("YES" if answer else "NO")

Submission status: Wrong Answer

Solution code:
a = input()
if a == "AAA" or "BBB":
  print("yes")
else:
  print("NO")

Submission status: Wrong Answer

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

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:
S = input()
if "A" in S and "B" in S:
    print("yes")
else:
    print("no")

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:
if "a" and "b" in input():
    print("yes")
else:
    print("no")

Submission status: Wrong Answer

Solution code:
A=list(input())
A.sort()#sortメソッドは破壊的
print("Yes" if A[1]!=A[2] else "No")

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
def check_service(service):
    no_service = ['AAA', 'BBB']
    if service in no_service:
        return "No"
    return "Yes"

Submission status: Wrong Answer

Solution code:
def check_service(service):
    no_service = ['AAA', 'BBB']
    if service in no_service:
        print("No")
    print("Yes")

Submission status: Wrong Answer

Solution code:
railway_companies = ['A', 'B']
services = []

for i in railway_companies:
    for j in railway_companies:
        for k in railway_companies:
            services.append(str(i) + str(j) + str(k))

def check_service(service):
    no_service = ['AAA', 'BBB']
    if service in no_service:
        print("No")
    print("Yes")

print(services)
for i in services:
    print(check_service(i))

Submission status: Wrong Answer

Solution code:
railway_companies = ['A', 'B']
services = []

for i in railway_companies:
    for j in railway_companies:
        for k in railway_companies:
            services.append(str(i) + str(j) + str(k))

def check_service(service):
    no_service = ['AAA', 'BBB']
    if service in no_service:
        return "No"
    return "Yes"

print(services)
for i in services:
    print(check_service(i))

Submission status: Wrong Answer

Solution code:
t = input()
l = [i for i in t]
print(l)
if "A" in l and "B" in l:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import sys

if len(sys.argv) < 2: 
    print("No argument given!")
    exit(0)

string = sys.argv[1]
if string == "AAA": print("No")
elif string == "BBB": print("No")
else: print("Yes")

Submission status: Wrong Answer

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

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('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:
def station(comp):
    if(len(set(comp))==0):
        print("No")
    else:
        print("Yes")

station(input())

Submission status: Wrong Answer

Solution code:
states = input()

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

Submission status: Wrong Answer

Solution code:
states = input()

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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:
stations = input()
if (not "A" in stations) or ("B" in stations):
  print("No")
else:
  print("Yes")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a = input().count('A')
if a != 0 or a != 3:
    print('Yes')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a,b,c=input()
if a==b and b==c:
  print("NO")
else:
  print("YES")

Submission status: Wrong Answer

Solution code:
a,b,c=input()
if a==b and b==c:
  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()
s = set(list(s))
if len(s) == 1:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
c = sorted(list(input().split()))
 
if c[0]=='A' and c[2]=='B':
  print('Yes')
else:
  print('No')

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
S=input()


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

Submission status: Wrong Answer

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


def main():
    s = input().strip()
    if s == "aaa" or s == "bbb":
        print("Yes")
    else:
        print("No")


if __name__ == '__main__':
    main()

Submission status: Wrong Answer

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


def main():
    s = input().split()
    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[0]==s[1] and s[1]==s[2]:
  print("Yes")
  
else :
  print("No")

Submission status: Wrong Answer

Solution code:
s=input()

for i in range(0,2):
    if s[i]!=s[i+1]:
        X=True
        break
    else :
        X=None

print(X)

Submission status: Wrong Answer

Solution code:
S = str(input("S = "))

if len(S)!=3:
   print ("The number of strings should be 3")

elif (('A') not in S) and (('B') not in S):
   print ("You can use only A or B")

elif S[0] == S[1] and S[1] == S[2]:
   print ("No")

else:
   print ("Yes")

Submission status: Wrong Answer

Solution code:
import sys

s = str(input("S = "))

len(s)==3

if (('A') not in s) and (('B') not in s):
   sys.exit()

elif (s == ("AAA")) or (s ==("BBB")):
   print ("No")

else:
   print ("Yes")

Submission status: Wrong Answer

Solution code:
s = str(input("S = "))

if len(s)!=3:
   print ("The number of strings should be 3")

elif (('A') not in s) and (('B') not in s):
   print ("You can use only A or B")

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

Submission status: Wrong Answer

Solution code:
s = str(input())

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

Submission status: Wrong Answer

Solution code:
S=input()
a=S[0]
flag=0
for i in range(3):
  if (a!=S[i]):
    fgag=1
if (flag==0):
  print('No')
else:
  print('Yes')

Submission status: Wrong Answer

Solution code:
S=input()
a=S[0]
flag=0
for i in range(3):
  if (S[0]!=S[i]):
    fgag=1
if (flag==0):
  print('No')
else:
  print('Yes')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
s=input()
s=list(s)
print(s)
if "A" not in s or "B" not in s:
  print("No")
else:
  print("Yes")

Submission status: Wrong Answer

Solution code:
s = list(input())
if "A" in s and not("B" in s):
  print("No")
elif "B" in s and not("A" in s):
  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 s=='BBB':
 	   print("NO")
else:
       print("YES")

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:
a, b, c = input()
s=set([a, b, c])
if len(s)==1:
  print("NO")
else:
  print("YES")

Submission status: Wrong Answer

Solution code:
a=input()
if a.count("A")>=1 & a.count("B")>=1:
  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:
stations = str(input())
bus = False
for i in range(0, len(stations)-2):
    if(stations[i] != stations[i+1]):
        bus = True

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

Submission status: Wrong Answer

Solution code:
stations = str(input())
bus = False
for i in range(0, len(stations)-2):
    if(stations[i] != stations[i+1]):
        bus = True
print(bus)

Submission status: Wrong Answer

Solution code:
s = input()
if s.count("A") > 0 and s.count("B") > 0:
    print("YES")
else:
    print("NO")

Submission status: Wrong Answer

Solution code:
def resolve():
    import sys

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

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

Submission status: Wrong Answer

Solution code:
s=set(input())
if not len(s)%2==0:
	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[0] == s[1] or s[1] == s[2]:
  print('No')
else: print('Yes')

Submission status: Wrong Answer

Solution code:
s = input()
if s.count('A') ==1 or s.count('B') ==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:
x = input()
if len(set(x))==1:
    print("NO")
else:
    print("YES")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
x = input()
if len(x) == set(x):
    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[0] != s[1] or s[0] != s[2]):
    print("yes")
else:
    print("no")

Submission status: Wrong Answer

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

if a == b ==c:
  print('NO')
elif a != b or a != c or b != c:
  print('YES')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
S=str(input())
if S.count('A')>0 or S.count('B')>0:
    print('Yse')
else:
  print('No')

Submission status: Wrong Answer

Solution code:
S=str(input())
if S.count('A')>0 and S.count('B')>0:
    print('Yse')
else:
  print('No')

Submission status: Wrong Answer

Solution code:
s = input()
if s == 'B'*len(s) or s == 'A'*len(s):
  print("NO")
else:
  print("YES")

Submission status: Wrong Answer

Solution code:
s = input()
if s == 'B'*len(s) or s == 'A'*len(s):
  print("NO")
else:
  print("YES")

Submission status: Wrong Answer

Solution code:
S=str(input())
if S.count('A')>=1:
    print('Yse')
else:
  print('No')

Submission status: Wrong Answer

Solution code:
S=str(input())
if S.count('A')>=1:
    print('yse')
else:
  print('No')

Submission status: Wrong Answer

Solution code:
S=input()
if S.count('A')>=1:
    print('yse')
else:
  print('No')

Submission status: Wrong Answer

Solution 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("Yes")
    else:
        print('No')


if __name__ == '__main__':
    main()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
s=input()

if "A" in s:
    if "B" in s:
        print("YES")
    else:
        print("NO")
else:
    print("NO")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
S=str(input())
if len(S)<=3:
    if S == 'ABA' and 'BBA':
        print("Yes")
    else:
        print("No")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
s = input()
if s[0]==s[1] or s[1] ==s[2]:
  print('YES')
else:
  print('NO')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
S = input()
if set(S) in ("A", "B"):
    print("No")
else:
    print("Yes")

Submission status: Wrong Answer

Solution code:
str = input()

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
if len(set(input())) >= 2:
	print('yes')
else:
	print('No')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n=input()

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
s = input()

if s == 'AAB' or s == "ABA" or s == 'ABB' or s == 'BAA' or s =="BAB" or s=="BBA":
    print("YES")
else:
    print('NO')

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 s== 'BBB':
  print("NO")
else:
  print("YES")

Submission status: Wrong Answer

Solution code:
n=input()
flag=0
for i in range(1,len(n)):
  if n[i-1]=="A" and n[i]=="B":
    flag=1
  elif n[i-1]=="B" and n[i]=="A":
    flag=1
  else:
    flag=0
if flag==1:
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n=input()
if len(set(n))>2:
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

Solution code:
S = input() 

if S.replace("A" ,"") == "" or S.replace("B", "") == "":
    print("No")
else:
    print("YES")

Submission status: Wrong Answer

Solution code:
user_input = str(input('input: '))
list_info = ['AAB', 'ABB', 'BAB', 'BBA', 'ABA', 'BAA']
if len(user_input) > 3:
    print('invalid input')
elif len(user_input) < 3:
    print('invalid input')
while user_input in list_info:
    print('Yes')
    break
while user_input not in list_info:
    print('No')
    break

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
def judge(S):
    if (S[1]==S[2] and S[1]==S[3]):
        print('No')
    else:
        print('Yes')

Submission status: Wrong Answer

Solution code:

s = input()
 
print('YES' if len(set(s)) == 2 else 'NO')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
stations = input()
s = stations.split()

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

Submission status: Wrong Answer

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


if __name__ == '__main__':
    A()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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