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:
m=input()
m2=[m[:1],m[1:2],m[2:]]

if ['A','B']in m2:
  print('Yes')
  
else:
  print('No')

Submission status: Wrong Answer

Solution code:



m=input()
m2=[m[:1],m[1:2],m[2:]]

if 'A' and 'B' in m2:
  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:
# 1
s = input()
if (s[:2] == "AA" or s[:2] == "BB" or s[-2:] == "AA" or s[-2:] == "BB"):
    print("No")
else:
    print("Yes")

Submission status: Wrong Answer

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

s = raw_input()
solve(s)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import sys

def solve(s):
    if s is 'AAA' or s is 'BBB':
        return False
    else:
        return True

s = raw_input()

if solve(s):
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

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

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].count == 3:
  print("No")
else:
  print("Yes")

Submission status: Wrong Answer

Solution code:
s = input("station:")
judge = ""
count = 0
result = ""
sta = [s[0], s[1], s[2]]
print(sta)
for s in sta:
    if count == 0:
        judge = s
    else:
        if s == judge:
            result = "No"
        else:
            result = "Yes"
            break
            
    count = 1
print(result)

Submission status: Wrong Answer

Solution code:
s = input("station:")
judge = ""
count = 0
result = ""
sta = [s[0], s[1], s[2]]
print(sta)
for s in sta:
    if count == 0:
        judge = s
        
    else:
        if s == judge:
            result = "No"
        else:
            result = "Yes"
            
    count = 1
print(result)

Submission status: Wrong Answer

Solution code:
sta = input("station:")
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: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-
st = str(input())
while(True):
  if(st == "AAA"):
    print("Yes")
    break
  elif(st == "BBB"):
    print("Yes")
    break
  else:
    print("No")
    break

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().split(' ')
s = set(s)
if len(s) == 1:
    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()
l=[]
for i in range(len(s)):
	l.append(s[i])
s_l=set(l)
print('YES' if len(s_l)==2 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:
a=input()
if  a == "AAA" or a == "BBB":
	print("No")
else:
	print("yes")

Submission status: Wrong Answer

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

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().split()
N = len(set(list(S)))
if N == 1:
	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:
s = input()
if len(s) != 3:
    print('no')
if s.upper() == 'AAA' or s.upper() == 'BBB' :
    print('no')
else:
    print('yes')

Submission status: Wrong Answer

Solution code:
a = input()
if a == "AAA":
  print("No")
if a == "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:
S1,S2,S3=input()
if S1==S2==S3:
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-
# Input of 3 stations
stations = input() # i.e. ABA

def needBus(s):
  '''<str> s: 3 stations'''
  return ((s[0] != s[1]) or (s[1] != s[2]))

# Output
print(needBus(stations))

Submission status: Wrong Answer

Solution code:
S = input()

if "AB" or "BA" in S:
    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=="AAA" or s=="BBB"):
   print("Yes")
else:
   print("No")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
S = input()

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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 == 3 or 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:
print('YES' if len(set(input()))>1 else'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:
s = input()
if s.count('A') == 3 or s.count('b'):
    print('No') 
else:
    print('Yes')

Submission status: Wrong Answer

Solution code:
S=input()
count=0
for i in range(2):
  S[i]==S[i+1]
  count+=1
if count==2:
  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:
n = str(input())

if n in 'A' == True and n in 'B' == True:
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

Solution code:
S = input()

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

if S != "AAA" and S != "BBB":
    print("YES")

Submission status: Wrong Answer

Solution code:
S = input()

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

if S != "AAA" or S != "BBB":
    print("YES")

Submission status: Wrong Answer

Solution code:
S = input()

if S == "AAA" or S == "BBB":
    print("NO");

if S != "AAA" or S != "BBB":
    print("YES");

Submission status: Wrong Answer

Solution code:
status = input()
if 'AB' in status or 'BA' in status:
    print('Yes')
else:
    print('no')

Submission status: Wrong Answer

Solution code:
status = 'BAB'
if 'AB' in status or 'BA' in status:
    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()

a = s.count("a")
b = s.count("b")

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
s = input()

if s == "AAA" or s == "BBB":
  print("NO")

if s != "AAA" and s != "BBB":
  print("YES")

Submission status: Wrong Answer

Solution code:
i = input()
if i=='AAA' or i=='BBB':
  print('no')
else:
  print('yes')

Submission status: Wrong Answer

Solution code:
def fun():
    cin=str(input())
    if cin[1] == cin[2] and cin[0] == cin[1]:
        return False
    else:
        return True
fun()

Submission status: Wrong Answer

Solution code:
S = input()

if (len(set(S)) != 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:
#!/usr/bin/env python3 ## -*- python -*-
import re

s = input()

pattern = r'[AB|BA]'

if re.match(pattern, s):
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
A = input()
if A == "AAA" and A == "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[0] == 'A' or s[1] == 'A' or s[2] == 'A' else "No")

Submission status: Wrong Answer

Solution code:
import sys
a = sys.argv
if a == "aaa" and a == "bbb":
    print("No")
else:
    print("Yes")

Submission status: Wrong Answer

Solution code:
import sys
a = sys.argv
if a == "aaa" or a == "bbb":
    print("No")
else:
    print("Yes")

Submission status: Wrong Answer

Solution code:
import sys

a = 3
b = sys.argv

print(a)
print(b)

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

Submission status: Wrong Answer

Solution code:
print("YNeos"[input()==("AAA"or"BBB")::2])

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
inp=input()
if inp=='AAA'or inp=='BBB':
  print('Yes')
else:
  print('NO')

Submission status: Wrong Answer

Solution code:
S=input('S')
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' 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()
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 s == "AAA" or "BBB":
    print("NO")
else:
    print("Yes")

Submission status: Wrong Answer

Solution code:
s = input()
fg = 0
for i in range(2):
    if s[i] != s[i+1]:
        fg = 1
if fg == 1:
    print("YES")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
import sys

def resolve():
    input = sys.stdin.readline
    s = input()

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
S=input()
S=[1 if s=='A' else 0 for s in S]
print("Yes") if sum(S)==0 or sum(S)==3 else print("No")

Submission status: Wrong Answer

Solution code:
import sys
input = sys.stdin.readline
s = input()

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

Submission status: Wrong Answer

Solution code:
s = input()
if s == "BBB":
	print("NO")
elif s == "AAA":
	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("No")
else:
  print("Yes")

Submission status: Wrong Answer

Solution code:
a,b,c=input()
print('Yes' if a==b==c else 'No')

Submission status: Wrong Answer

Solution code:
import sys
def input():
    return sys.stdin.readline()[:-1]

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
S = list(input())
print(S)
if S[0] == S[2] and S[1] == S[2]:
    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:
test_input = str(input())
if test_input.count("A") == 3 or test_input.count("B") == 3:
    print ("FALSE")
else:
    print("TRUE")

Submission status: Wrong Answer

Solution code:
s = input()
for i in range(0,2):
    if s[i] != s[i+1]:
        print('YES')
        break
else:
    print('NO')

Submission status: Wrong Answer

Solution code:
s = input()
f = False
for i in range(0,2):
  if s[i] != s[i+1]:
    f = True
    break
    
if f:
  print('YES')
else:
  print('NO')

Submission status: Wrong Answer

Solution code:
a,b,c = input()

if a == b == c:
    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 = input()
if S[0] == S[1] and S[1] == S[2]:
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
S=input()
for a in S:
  if a=='AAA':
    print('No')
  elif a=='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:
if __name__== '__main__':
  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:
if input() == "AAA" or "BBB":
  print("No")
else:
  print("yes")

Submission status: Wrong Answer

Solution code:
if __name__== '__main__':
  s = input('>>')
  if s[0] == 'A' and s[1] == 'A' and s[2] == 'A':
        	print('Yes')
  elif s[0] == 'B' and s[1] == 'B' and s[2] == 'B':
      		print('Yes')
  else:
        	print('No')

Submission status: Wrong Answer

Solution code:
stdin = input()
if len(set(stdin)) == 1:
  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=list(input().strip())
x=s.count(s[0])
if x==0 or x==3:
    print('NO')
else:
    print('YES')

Submission status: Wrong Answer

Solution code:
s=input()
if s in "AB" or "BA":
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
S=input()
if(("AB"or"BA")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()
if(S in ("A"and"B")):
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
s = input()

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

Submission status: Wrong Answer

Solution code:
s = input()

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

Submission status: Wrong Answer

Solution code:
S = input()
if S.find("AB")  or S.find("BA") == -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[0] != S[1] and S[1] == S[2]:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
st=set([i for  i in input()])
print('No') if len(st)==0 else print('Yes')

Submission status: Wrong Answer

Solution code:
import sys, re
from collections import deque, defaultdict, Counter
from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians
from itertools import accumulate, permutations, combinations, product
from operator import itemgetter, mul
from copy import deepcopy
from string import ascii_lowercase, ascii_uppercase, digits
from bisect import bisect, bisect_left
from fractions import gcd
from heapq import heappush, heappop

def input(): return sys.stdin.readline().strip()
def INT(): return int(input())
def MAP(): return map(int, input().split())
def LIST(): return list(map(int, input().split()))
sys.setrecursionlimit(10 ** 9)
INF = float('inf')
MOD = 10 ** 9 + 7

S = input()

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

Submission status: Wrong Answer

Solution code:
s = input()

count_a = 0
count_b = 0

for i in s : 
  if i == 'A' :
    count_a += 1
  else :
    count_b +=1

if count_a - count_b == 1 or count_b - count_a == 1 : 
  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:
s = input().split()

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

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-
a = str(input())

if a in "AB" or a in "BA":
	print("Yes")
else:
	print("No")

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-
a = str(input())

if a.find("AB") != 0 :
	print("Yes")
else:
	print("No")

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-
a = str(input())

if a.find("AB") or a.find("BA"):
	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:
# -*- coding: utf-8 -*-
a = str(input())

if a.find("ab") or a.find("ba"):
	print("Yes")
else:
	print("No")

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-
a = str(input())

if a.find("ab"):
	print("Yes")
else:
	print("No")

Submission status: Wrong Answer

Solution code:
print("python3")

Submission status: Wrong Answer

Solution code:
print("pypy3")

Submission status: Wrong Answer

Solution code:
s = str(input())

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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()
ans = "Yes" if s in ["AAA", "BBB"] else "No"
print(ans)

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:
N = input()
if len(set(N))==1:
  print('NO')
else:
  print('YES')

Submission status: Wrong Answer

Solution code:
N = input()
if len(set(N))==1:
  print('YES')
else:
  print('NO')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
stations = input()

print('No') if len(set(stations)) == 0 else print('Yes')

Submission status: Wrong Answer

Solution code:
s = input().split()
n = 0
for i in range(len(s) - 1):
  if s[i] != s[i + 1]:
    n += 1
if n >= 1:
  print('Yes')
else:
  print('No')

Submission status: Wrong Answer

Solution code:
S=map(str,input())
if "A" in S or "B"in S:
    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().split()
n = 0
for i in range(len(s) - 1):
  if s[i] == s[i + 1]:
    n += 1
if n == 0:
  print('Yes')
else:
  print('No')

Submission status: Wrong Answer

Solution code:
word = input()

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

Submission status: Wrong Answer

Solution code:
s = input().split()
n = 0
for i in range(len(s) - 1):
  if s[i] != s[i + 1]:
    n += 1
if n == 0:
  print('No')
else:
  print('Yes')

Submission status: Wrong Answer

Solution code:
Flag =  0 
S = input()
SA = [str(c) for c in S]
A = list(['A','A','A'])
B = list(['B','B','B'])
print(SA)
if(set(SA) == set(A) or set(SA) ==set(B)):
    print("No")
else:
    print("Yes")

Submission status: Wrong Answer

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

a = 0
i = 0

for i in range(3) :
    j = i + 1
    if word[i:i] == word[j:j] :
        a = a + 1

if a == 0 : print("No")
else : print("Yes")

Submission status: Wrong Answer

Solution code:
Flag =  0 
S = input()
SA = [str(c) for c in S]
A = list(['A','A','A'])
B = list(['B','B','B'])
print(SA)
if(set(SA) == set(A) and set(SA) ==set(B)):
    print("No")
else:
    print("Yes")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:

Flag =  0 
S = input()
SA = [str(c) for c in S]
A = list(['A','A','A'])
B = list(['B','B','B'])
print(SA)
if(set(S) == set(A) and set(S) ==set(B)):
    print("No")
else:
    print("Yes")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
word = input()

x = 0

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

Submission status: Wrong Answer

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


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


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


S = input()

S_list = list(S)


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

Submission status: Wrong Answer

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

x = 0

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

Submission status: Wrong Answer

Solution code:
import sys
Flag =  0 
S = input()
SA = [str(c) for c in S]
A = list(['A','A','A'])
B = list(['B','B','B'])
print(SA)
if(set(S) == set(A) and set(S) ==set(B)):
    print("No")
else:
    print("Yes")

Submission status: Wrong Answer

Solution code:
S=map(str,input())
if "A" in S:
    print("yes")
else :
    print("no")

Submission status: Wrong Answer

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

x = 0

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

Submission status: Wrong Answer

Solution code:
import sys
Flag =  0 
S = input()
SA = [str(c) for c in S]
A = list(['A','A','A'])
B = list(['B','B','B'])
print(SA)
if(set(S) == set(A) or set(S) ==set(B)):
    print("No")
else:
    print("Yes")

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

Submission status: Wrong Answer

Solution code:
import sys
Flag =  0 
S = input()
SA = [str(c) for c in S]
A = list(['AAA'])
B = list(['BBB'])
print(SA)
if(set(S) == set(A) or set(S) ==set(B)):
    print("No")
else:
    print("Yes")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
S=input("   ")
if S==("AAA"):
     print("NO")
else:
   print("Yes")

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

Submission status: Wrong Answer

Solution code:
Flag =  0 
after = ""
S = input().split()
A = list(["AAA"])
B = list(["BBB"])
print(S)
if(set(S) == set(A) or set(S) ==set(B)):
    print("No")
else:
    print("Yes")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import random
import numpy as np

S =list =["A","B"]
x = np.random.choice(S)
y = np.random.choice(S)
z = np.random.choice(S)
#print(x,y,z)
if x == y == z:
    print("No")
else:
    print("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:
list = ["AAA","AAB","ABB","BBB","BBA","BAA","ABA","BAB"]
S = input()
if S not in list:
    print("3文字かつAもしくはBのみで構成する入力を与えてください")
    S = input()
elif S[0] == S[1] == S[2]:
    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:
import random
import numpy as np
A = 1
B = 2
S =[A,B]
x = np.random.choice(S)
y = np.random.choice(S)
z = np.random.choice(S)
if x == y == z:
    print("No")
else:
    print("Yes")

Submission status: Wrong Answer

Solution code:
import random
import numpy as np
A = 1
B = 2
S =[A,B]
x = np.random.choice(S)
y = np.random.choice(S)
z = np.random.choice(S)
if x == y == z:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
A = str(input())

if A=="AAA":
  print("No")
  
if A=="BBB":
  print("No")


if A =="AAB"or"ABA"or"BAA"or"BBA"or"BAB":
  print("Yes")

Submission status: Wrong Answer

Solution code:
A = str(input())

if A=="AAA":
  print("NO")
  
if A=="BBB":
  print("NO")


if A =="AAB"or"ABA"or"BAA"or"BBA"or"BAB":
  print("YES")

Submission status: Wrong Answer

Solution code:
S = input()
T = [0]*3
Z = 0
for i in range(3):
    if S[i] == 'A':
        T[i] = 0
    else:
        T[i] = 1
    Z = T[i] * Z

if Z == 0 and sum(T)!=3:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
A = str(input())

if A=="AAA""BBB":
  print("NO")
  
if A=="BBB":
  print("NO")

# else:
#   print("YES")

if A =="AAB"or"ABA"or"BAA"or"BBA"or"BAB":
  print("YES")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
S = input()
tList = list(S)

firstStation = tList[0]
Monopoly = 0

for str in tList:
    if(str == firstStation):
        Monopoly = 0

    else:
        Monopoly = 1
        break

if(Monopoly == 0):
    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:
def station_bus(s1):
  countA=0
  countB=0
  for i in range(len(s1)):
    if s1[i]=="A":
      countA+=1
    else:
      countB+=1
  c1 = countA==1 or countA==2
  c2 = countB==1 or countB==2
  if c1 and c2:
    return True
  else:
    return False




string=input()
output=station_bus(string)
print(output)

Submission status: Wrong Answer

Solution code:
def station_bus(s1):
  countA=1
  countB=2
  for i in range(len(s1)):
    if s1[i]=="A":
      countA+=1
    else:
      countB+=1
  c1 = countA==1 or countA==2
  c2 = countB==1 or countB==2
  if c1 and c2:
    return True
  else:
    return False




string=input()
output=station_bus(string)
print(output)

Submission status: Wrong Answer

Solution code:
sta = input()

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

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

Submission status: Wrong Answer

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