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: Accepted

Solution code:
import sys

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#ABC158A
import sys
s = sys.stdin.readline().rstrip()

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-

import sys

def prob_a(s):
    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__':
    s = input()
    prob_a(s)

Submission status: Accepted

Solution code:
s = input()
str = list(s)
 
ca = str.count("A")
cb = str.count("B")
 
if ca == 3 or cb == 3:
  print("No")
else:
  print("Yes")

Submission status: Accepted

Solution code:
#完全回答者のコピペです
d = list(input())
qa = 'Yes'
if d.count('A') == 3 or d.count('B') == 3:
    qa = 'No'
print(qa)

Submission status: Accepted

Solution code:
#初めてのpython!!

# s = list(input())
# ans = 'Yes'
# if s.count('A') == 3 or s.count('B') == 3:
#     ans = 'No'
# print(ans)

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

Submission status: Accepted

Solution code:
# 初期入力
S = input()

# 3つとも同じ会社だったらバスはない
s_list =[i for i in S]
if s_list[0] == s_list[1] and s_list[1] ==s_list[2]:
    print("No")
else:
    print("Yes")

Submission status: Accepted

Solution code:
s = list(input())
ans = 'Yes'
if s.count('A') == 3 or s.count('B') == 3:
    ans = 'No'
print(ans)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = input()

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()

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

Submission status: Accepted

Solution code:
S=list(input())

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

Submission status: Accepted

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

if __name__ == "__main__":
    main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def station(comp):
   if(len(set(comp)) == 1):
      print("No")
   else:
      print("Yes")

station(input())

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def main():
    s = list(input())
    s_set = set(s)

    if len(s_set) == 1:
        print('No')
    else:
        print('Yes')


if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
input_lines=input()
word='No'
for i in range(2):
    if not input_lines[i]==input_lines[i+1]:
        word='Yes'
print(word)

Submission status: Accepted

Solution code:
s = input()

curr_c = s[0]
ans = "No"
for c in s[1:]:
    if(c!=curr_c):
        ans = "Yes"
        break

print(ans)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = list(map(str, input()))

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

Submission status: Accepted

Solution code:
s = input()

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()
r = 'Yes'
for c in s:
	if s.count(c) == 3:
		r = 'No'
		break
print(r)

Submission status: Accepted

Solution code:
# 入力の取得
s = input()

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = input()

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
arr = input()
cnt = 0
for a in arr:
    if a == 'A':
        cnt += 1

if cnt == 0 or cnt == len(arr):
    print("No")
else:
    print("Yes")

Submission status: Accepted

Solution code:
def main(x):
    a = False
    if 'A' in x:
        if 'B' in x:
            if len(x) == 3:
                a = True
    return a

if __name__ == "__main__":
    x = input()
    v = main(x)
    if v:
        print("Yes")
    else:
        print("No")

Submission status: Accepted

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

Submission status: Accepted

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

if len(s) == 2:
    print('Yes')

else:
    print('No')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from copy import deepcopy
from sys import exit,setrecursionlimit
import math
from collections import defaultdict,Counter,deque
from fractions import Fraction as frac
import fractions
from functools import reduce
from operator import mul
import bisect
import sys
import logging
import heapq
import itertools

logging.basicConfig(level=logging.ERROR)

input = sys.stdin.readline

setrecursionlimit(1000000)


def main():
    s = input()
    if s.count('A') == 3 or s.count('B') == 3:
        print('No')
    else:
        print('Yes')

main()

Submission status: Accepted

Solution code:
s = list(input())

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

Submission status: Accepted

Solution code:
a = input()
b = a[0]
c = False
for i in range(len(a)):
    if a[i] != b:
        c = True
if c:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
s = list(input())

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

Submission status: Accepted

Solution code:
S = input()

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
print('YNeos'[input()in("AAA","BBB")::2])

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def f():
    S = raw_input()
    return 'Yes' if len(set(S)) == 2 else 'No'

print(f())

Submission status: Accepted

Solution code:
S=list(input())

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()

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

Submission status: Accepted

Solution code:
s = input()

s = sorted(s)

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
line = input()

if line[0]==line[1]==line[2]:
    print("No")

else:
    print("Yes")

Submission status: Accepted

Solution code:
S=input()


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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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


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


if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
n=input()
j=0

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S=input()
f=1
for i in range(1,3):
	if (S[i]!=S[0]):
	    f=0
if(f==0):
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
print("YNeos"[input() in['AAA','BBB']::2])

Submission status: Accepted

Solution code:
line = input()
char_list = list(line)

if "A" not in char_list or "B" not in char_list :
  print("No")
else:
  print("Yes")

Submission status: Accepted

Solution code:
s = str(input())

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

Submission status: Accepted

Solution code:
# coding: utf-8
import os, sys

S = str(input())
ans = len(set(S))

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

Submission status: Accepted

Solution code:
#!/usr/bin/env pypy3

import sys

sys.setrecursionlimit(10 ** 6)


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

main()

Submission status: Accepted

Solution code:
#!/usr/bin/env python3 pypy

import sys

sys.setrecursionlimit(10 ** 6)


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

main()

Submission status: Accepted

Solution code:
input_line = input("")
a_num = 0
b_num = 0
for c in input_line:
  if c == "A":
    a_num += 1
  else:
    b_num += 1

if a_num*b_num > 0:
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
#!/usr/bin/env python3

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

Submission status: Accepted

Solution code:
S = input()

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

Submission status: Accepted

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

else:
  print('Yes')

Submission status: Accepted

Solution code:
s = input()
s1 = s[0]
s2 = s[1]
s3 = s[2]

if s1 == s2:
  if s1 == s3:
    print('No')
    exit()
print('Yes')

Submission status: Accepted

Solution code:
S = input()

S_list = [i for i in S]
S_set = set(S_list)

if len(S_set) == 2:
  print('Yes')
else:
  print('No')

Submission status: Accepted

Solution code:
s = input()

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

Submission status: Accepted

Solution code:
S=list(input())
count=0
for i in range(2):
  if not S[i]==S[i+1]:
    count+=1
if count >= 1:
  print('Yes')
else:
  print('No')

Submission status: Accepted

Solution code:
S = input()
for i in range(2):
    if  S[i] == S[i+1]:
        pass
    else:
        print("Yes")
        exit()
print("No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()

if s.count("A") == 3 or s.count("B") == 3:
  print("No")
else:
  print("Yes")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = input()

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def main():
    S = set(input())
    print("Yes" if 1 < len(S) else "No")
    return


main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()
p = s[0]
for i in range(len(s)):
    if s[i] != p:
        print('Yes')
        exit()
print('No')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = input()
a, b = [False, False]

for s in S:
    if s == "A":
        a = True
    else:
        b = True

ans = "No"
if a and b:
    ans = "Yes"

print(ans)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = input()

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

Submission status: Accepted

Solution code:
import sys

if sys.platform =='ios':
    sys.stdin=open('input_file.txt')
a=input()

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

Submission status: Accepted

Solution code:
import collections
S = list(input())
c = collections.Counter(S)


if 0 < c['A'] < 3:
  print('Yes')
else:
  print('No')

Submission status: Accepted

Solution code:
a=input()
p1=a[-1]
p2=a[0]
p3=a[1]
 
if p1==p2==p3:
  print("No")
else:
  print("Yes")

Submission status: Accepted

Solution code:
# A = [list(map(int, input().split())) for _ in range(3)]
# n = int(input())
# B = [int(input()) for _ in range(n)]
# X = list(map(int, input().split()))
# n, m = map(int, input().split())
S = list(input())
if S[0] != S[1] or S[1] != S[2]:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
# coding: utf-8
s = input()
if s == 'AAA' or s == 'BBB' :
    print('No')
else:
    print('Yes')

Submission status: Accepted

Solution code:
import sys

s = input()

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

print('Yes')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S=input()
if S==('B'*3) or S==('A'*3):
  print('No')
else:
  print('Yes')

Submission status: Accepted

Solution code:
a=list(input())
count=0
if a[0]!=a[1]:
  count=1
if a[1]!=a[2]:
  count=count+1
if count>=1:
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
alist=list(input())

if alist[0]!=alist[1] or alist[0]!=alist[2] or alist[1]!=alist[2]:
  print('Yes')
else:
  print('No')

Submission status: Accepted

Solution code:
a, b, c = input()
s=set([a, b, c])
if len(s)==1:
  print("No")
else:
  print("Yes")

Submission status: Accepted

Solution code:
a=input()
if a.count("A")>=1 and a.count("B")>=1:
  print("Yes")
else:
  print("No")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()
temp = set()
for i in range(3):
    temp.add(s[i])
if len(temp) == 1:
    print('No')
else:
    print('Yes')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = input()

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def resolve():
    import sys

    input = sys.stdin.readline




    s = input().rstrip()

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

resolve()

Submission status: Accepted

Solution code:
#バスが運行するかどうか Yes　運航する
S=input()
if S[0]==S[1] and S[0]==S[2]:
    print("No")
else:
    print("Yes")

Submission status: Accepted

Solution code:
s=set(input())
if not len(s)%2==0:
	print("No")
else:
	print("Yes")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# coding:utf-8


strInput = input()
existA = 'A' in strInput
existB = 'B' in strInput

if existA and existB:
    print('Yes')
else:
    print('No')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()
if s.find('AB') >= 0 or s.find('BA') >= 0:
    print('Yes')
else:
    print('No')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = list(input().strip())

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

Submission status: Accepted

Solution code:
s = list(input())

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = input()

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

Submission status: Accepted

Solution code:
S = input()

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

Submission status: Accepted

Solution code:
S = input()

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

Submission status: Accepted

Solution code:
s = input()

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

Submission status: Accepted

Solution code:
S = input()

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

Submission status: Accepted

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

Submission status: Accepted

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: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#https://atcoder.jp/contests/abc158/tasks/abc158_a
# -*- coding: utf-8 -*-
S = input()
if S == "AAA" or S == "BBB":
  print("No")
else:
  print("Yes")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = input() # 文字列を変数に格納

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python
def main():
    S = input()
    if S == 'AAA' or S == 'BBB':
        print("No")
    else:
        print("Yes")

if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
input_line = input()

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = input()

if 'AB' in S or 'BA' in S:
    print('Yes')
    exit()

print('No')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a=input()
flag=False
if a[0]!=a[1]:
    flag=True
if a[1]!=a[2]:
    flag=True

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

Submission status: Accepted

Solution code:
S=list(map(str,input()))

if S[0]!=S[1]:
    print("Yes")

elif S[0]!=S[2]:
    print("Yes")

elif S[1]!=S[2]:
    print("Yes")

else:
    print("No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S=str(input())
a=S.count('A')
b=S.count('B')
if a != 3 and b != 3:
  print('Yes')
else:
  print('No')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
line = input()
tmp = [0,0,0]
for i in range(3):
    tmp[i] = line[i]
tmp = set(tmp)

if len(tmp) == 1:
    print("No")
if len(tmp) == 2:
    print("Yes")

Submission status: Accepted

Solution code:
s = str(input())
station_a = s.count('A')
station_b = s.count('B')
if station_a != 3 and station_b != 3:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
args = input()
if 'A' in args:
  if 'B' in args:
    print('Yes')
    exit()
print('No')

Submission status: Accepted

Solution code:
s, t, u = input()

if s == 'A' and t == 'A' and u == 'A':
    print('No')
elif s == 'B' and t == 'B' and u == 'B':
    print('No')
else:
    print('Yes')

Submission status: Accepted

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


if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s=input()

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()

flag = False

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def main():
    S = list(input())

    if len(list(set(S))) > 1:
        print('Yes')
    else:
        print('No')



if __name__ == "__main__":
    main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = list(input())

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

print(ans)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a = input()
l=[i for i in a]
l1=set(l)
if len(l1)>=2:
    print('Yes')
else:
    print('No')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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