from collections import Counter,defaultdict,deque

from bisect import bisect_left

import sys,math,itertools,pprint,fractions,time

sys.setrecursionlimit(10**8)

mod = 10**9+7

INF = float('inf')

def inp(): return int(sys.stdin.readline())

def inpl(): return list(map(int, sys.stdin.readline().split()))



s = eval(input())

if s[0] != s[1] or s[1] != s[2]:

    print('Yes')

else: print('No')
from collections import Counter,defaultdict,deque

from heapq import heappop,heappush,heapify

from bisect import bisect_left,bisect_right 

import sys,math,itertools,fractions,pprint

sys.setrecursionlimit(10**8)

mod = 10**9+7

INF = float('inf')

def inp(): return int(sys.stdin.readline())

def inpl(): return list(map(int, sys.stdin.readline().split()))



s = eval(input())

print(('No' if s.count('A') == 3 or s.count('B') == 3 else 'Yes'))
from collections import Counter, defaultdict, deque
from bisect import bisect_left
import sys, math, itertools, pprint, fractions, time

sys.setrecursionlimit(10**8)
mod = 10**9 + 7
INF = float("inf")


def inp():
    return int(sys.stdin.readline())


def inpl():
    return list(map(int, sys.stdin.readline().split()))


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

from collections import Counter, defaultdict, deque
from heapq import heappop, heappush, heapify
from bisect import bisect_left, bisect_right
import sys, math, itertools, fractions, pprint

sys.setrecursionlimit(10**8)
mod = 10**9 + 7
INF = float("inf")


def inp():
    return int(sys.stdin.readline())


def inpl():
    return list(map(int, sys.stdin.readline().split()))


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

-from bisect import bisect_left -import sys, math, itertools, pprint, fractions, time +from heapq import heappop, heappush, heapify +from bisect import bisect_left, bisect_right +import sys, math, itertools, fractions, pprint -if s[0] != s[1] or s[1] != s[2]: -    print("Yes") -else: -    print("No") +print(("No" if s.count("A") == 3 or s.count("B") == 3 else "Yes"))