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-----
ABA

-----Sample Output-----
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.
[{"code": "S = list(map(str,input()))\n\nif S[0] != S[1] or S[1] != S[2]:\n    print(\"Yes\")\nelse:\n    print(\"No\")", "passed": true, "time": 0.15, "memory": 14236.0, "status": "done"}, {"code": "s = input()\n\nif s == \"AAA\" or s == \"BBB\":\n    print(\"No\")\nelse:\n    print(\"Yes\")", "passed": true, "time": 0.15, "memory": 14384.0, "status": "done"}, {"code": "s = list(input())\nif (s.count('A') == 0 or s.count('B') == 0):\n    print(\"No\")\nelse:\n    print(\"Yes\")\n", "passed": true, "time": 0.93, "memory": 14204.0, "status": "done"}, {"code": "S=input()\nprint(['Yes','No'][S in ['AAA','BBB']])", "passed": true, "time": 0.15, "memory": 14260.0, "status": "done"}, {"code": "Ss = input().rstrip()\n\nif Ss in ['AAA', 'BBB']:\n    print('No')\nelse:\n    print('Yes')\n", "passed": true, "time": 0.15, "memory": 14140.0, "status": "done"}, {"code": "S = input()\nif len(set(list(S))) == 1:\n    print('No')\nelse:\n    print('Yes')", "passed": true, "time": 0.24, "memory": 14052.0, "status": "done"}, {"code": "S = input()\nif S == \"AAA\" or S == \"BBB\":\n  print(\"No\")\nelse:\n  print(\"Yes\")\n", "passed": true, "time": 0.24, "memory": 14156.0, "status": "done"}, {"code": "print('YNeos'[len(set([*input()]))<2::2])", "passed": true, "time": 0.15, "memory": 14240.0, "status": "done"}, {"code": "def main():\n    s = input()\n    return \"Yes\" if  len(set(s))==2 else \"No\"\n    \ndef __starting_point():\n    print(main())\n__starting_point()", "passed": true, "time": 0.15, "memory": 14224.0, "status": "done"}, {"code": "a = input()\n\nif a == \"AAA\" or a == \"BBB\" :\n    print(\"No\")\nelse :\n    print(\"Yes\")", "passed": true, "time": 0.15, "memory": 14312.0, "status": "done"}, {"code": "s = input()\nif s == 'AAA' or s == 'BBB':\n  print('No')\nelse:\n  print('Yes')", "passed": true, "time": 0.22, "memory": 14364.0, "status": "done"}, {"code": "print('YNeos'[len(set(input()))<2::2])", "passed": true, "time": 0.16, "memory": 14188.0, "status": "done"}, {"code": "s = input()\n\nif s == 'AAA' or  s == 'BBB':\n    print('No')\nelse :\n    print('Yes')", "passed": true, "time": 0.15, "memory": 14356.0, "status": "done"}, {"code": "S=input()\nif abs(S.count('A')-S.count('B'))!=3:print('Yes')\nelse:print('No')", "passed": true, "time": 0.24, "memory": 14084.0, "status": "done"}, {"code": "s = input()\nprint(\"No\" if len(set(s)) == 1 else \"Yes\")", "passed": true, "time": 0.15, "memory": 14108.0, "status": "done"}, {"code": "s = str(input())\n\nif s[0] == 'A':\n    t = 'B'\nelse:\n    t = 'A'\n\nanswer = s.find(t)\n\nif answer != -1:\n    print('Yes')\nelse:\n    print('No')", "passed": true, "time": 0.14, "memory": 14304.0, "status": "done"}, {"code": "print(\"Yes\" if len(set(input()))!=1 else \"No\")", "passed": true, "time": 0.14, "memory": 14240.0, "status": "done"}, {"code": "s = input()\n\nif s == 'AAA' or s == 'BBB':\n    print('No')\nelse:\n    print('Yes')\n", "passed": true, "time": 0.15, "memory": 14252.0, "status": "done"}, {"code": "# coding: utf-8\n# Your code her\ns = input()\n\nif \"B\" in s and \"A\" in s:\n    print(\"Yes\")\nelse:\n    print(\"No\")", "passed": true, "time": 0.14, "memory": 14140.0, "status": "done"}, {"code": "s=list(input())\nif s[1]==\"A\" and s[0]==\"A\" and s[2]==\"A\":\n  print(\"No\")\nelif s[1]==\"B\" and s[0]==\"B\" and s[2]==\"B\":\n  print(\"No\")\n\nelse:\n  print(\"Yes\")", "passed": true, "time": 0.14, "memory": 14332.0, "status": "done"}, {"code": "s=list(input())\nif (s[0]==s[1]) and (s[0]==s[2]):\n  print('No')\nelse:\n  print('Yes')", "passed": true, "time": 0.15, "memory": 14044.0, "status": "done"}, {"code": "a = input()\n\nif a == \"AAA\" or a == \"BBB\":\n    print(\"No\")\n\nelse:\n    print(\"Yes\")", "passed": true, "time": 0.14, "memory": 14148.0, "status": "done"}, {"code": "# 158 A\nS = input()\nprint('No') if S == 'AAA' or S == 'BBB' else print('Yes')", "passed": true, "time": 0.14, "memory": 14280.0, "status": "done"}, {"code": "s = input()\nif s == 'AAA' or s == 'BBB' :\n    print('No')\nelse :\n    print('Yes')", "passed": true, "time": 0.14, "memory": 14276.0, "status": "done"}, {"code": "S = input()\nif S == \"AAA\" or S == \"BBB\":\n    print('No')\nelse:\n    print('Yes')", "passed": true, "time": 0.15, "memory": 14352.0, "status": "done"}, {"code": "s=input()\nprint(\"Yes\" if len(set(s))!=1  else \"No\")", "passed": true, "time": 0.14, "memory": 14208.0, "status": "done"}, {"code": "S = input()\n\nif S == \"AAA\" or S == \"BBB\":\n    print('No')\nelse:\n    print('Yes')\n", "passed": true, "time": 0.14, "memory": 14120.0, "status": "done"}, {"code": "S = input()\n\nprint(\"Yes\" if len(set(S)) == 2 else \"No\")", "passed": true, "time": 0.14, "memory": 14200.0, "status": "done"}, {"code": "s = input()\nprint(('No' if s == 'AAA' or s== 'BBB' else 'Yes'))\n", "passed": true, "time": 0.14, "memory": 14080.0, "status": "done"}, {"code": "S = str(input())\nif S == 'AAA' or S== 'BBB':\n  print('No')\n\nelse:\n  print('Yes')", "passed": true, "time": 0.14, "memory": 14088.0, "status": "done"}, {"code": "s = input()\nif s == 'AAA' or s == 'BBB':\n    print('No')\nelse:\n    print('Yes')", "passed": true, "time": 0.23, "memory": 14356.0, "status": "done"}, {"code": "S=input()\nif S!=\"AAA\" and S!=\"BBB\":\n    print(\"Yes\")\nelse:\n    print(\"No\")", "passed": true, "time": 0.14, "memory": 14276.0, "status": "done"}, {"code": "S=input()\n\nlist=[]\nt=0\nwhile t<=2:\n    list.append(S[t])\n    t=t+1\n\nif len(set(list))==1:\n    print('No')\nelse:\n    print('Yes')", "passed": true, "time": 0.22, "memory": 14208.0, "status": "done"}, {"code": "s = input()\n\ns_count_A = s.count('A')\n\nif s_count_A == 0 or s_count_A == 3:\n    ans = 'No'\nelse:\n    ans = 'Yes'\n\nprint(ans)", "passed": true, "time": 0.23, "memory": 14260.0, "status": "done"}, {"code": "S=input()\nif(S[0]==S[1] and S[1]==S[2]):\n  print(\"No\")\nelse:\n  print(\"Yes\")", "passed": true, "time": 0.14, "memory": 14196.0, "status": "done"}, {"code": "s = input()\nif(s == 'AAA' or s == 'BBB'):\n    print(\"No\")\nelse:\n    print(\"Yes\")    \n", "passed": true, "time": 0.15, "memory": 14248.0, "status": "done"}, {"code": "from collections import Counter\ns = input()\ns = Counter(s)\nif len(s)==1:\n    print('No')\nelse:\n    print('Yes')", "passed": true, "time": 0.14, "memory": 14296.0, "status": "done"}, {"code": "s = input()\nprint('No' if s=='AAA' or s=='BBB' else 'Yes')", "passed": true, "time": 0.14, "memory": 14284.0, "status": "done"}, {"code": "s = input()\n\nif s == 'AAA' or s == 'BBB':\n  print('No')\nelse:\n  print('Yes')\n", "passed": true, "time": 0.14, "memory": 14244.0, "status": "done"}, {"code": "S = input()\nif(S[0] == S[1] and S[1] == S[2]):\n    print(\"No\")\n    return\nprint(\"Yes\")", "passed": true, "time": 0.14, "memory": 14140.0, "status": "done"}, {"code": "def main():\n    chars = input()\n    if (chars[0] == chars[1] and chars[1] == chars[2]):\n        print(\"No\")\n    else:\n        print(\"Yes\")\n\n\nmain()\n", "passed": true, "time": 0.22, "memory": 14208.0, "status": "done"}, {"code": "s=input()\nif s==\"AAA\" or s==\"BBB\":\n    print(\"No\")\nelse:\n    print(\"Yes\")", "passed": true, "time": 0.15, "memory": 14180.0, "status": "done"}, {"code": "s=input()\nfor i in range(2):\n  if s[i]!=s[i+1]:\n    print(\"Yes\")\n    break\nelse:print(\"No\")", "passed": true, "time": 0.23, "memory": 14032.0, "status": "done"}, {"code": "import os, sys, re, math\n\nS = input()\n\nif S == 'AAA' or S == 'BBB':\n    print('No')\nelse:\n    print('Yes')\n", "passed": true, "time": 0.14, "memory": 14116.0, "status": "done"}, {"code": "S = input()\n\nif (S.count('A') == 2 and S.count('B') == 1) or (S.count('A') == 1 and S.count('B') == 2) :\n    print(\"Yes\")\nelse :\n    print(\"No\")", "passed": true, "time": 0.14, "memory": 14052.0, "status": "done"}, {"code": "s = input()\nif s[0] == s[1] and s[1] == s[2]:\n\tprint('No')\nelse:\n\tprint('Yes')", "passed": true, "time": 0.15, "memory": 14184.0, "status": "done"}, {"code": "print('YNeos'[input()in['AAA','BBB']::2])", "passed": true, "time": 0.14, "memory": 14336.0, "status": "done"}, {"code": "# AAA or BBB \u306a\u3089No\n\nS = list(input())\n\nS_sorted = ''.join(sorted(S))\n# print(S_sorted)\n\nif S_sorted == 'AAA' or S_sorted == 'BBB':\n    print('No')\nelse:\n    print('Yes')\n", "passed": true, "time": 0.14, "memory": 14184.0, "status": "done"}, {"code": "S = input()\nans = 'Yes'\nif not 'A' in S:\n    ans = 'No'\nif not 'B' in S:\n    ans = 'No'\nprint(ans)", "passed": true, "time": 0.14, "memory": 14304.0, "status": "done"}, {"code": "s = str(input())\nif s ==\"AAA\" or s==\"BBB\":\n  print(\"No\")\nelse:\n  print(\"Yes\")", "passed": true, "time": 0.26, "memory": 14304.0, "status": "done"}, {"code": "S = input()\n\nif S == 'AAA' or S == 'BBB':\n    print('No')\nelse:\n    print('Yes')", "passed": true, "time": 0.14, "memory": 14148.0, "status": "done"}, {"code": "def readinput():\n    s=input()\n    return s\n\ndef main(s):\n    if s == 'AAA' or s == 'BBB':\n        return 'No'\n    else:\n        return 'Yes'\n\ndef __starting_point():\n    s=readinput()\n    ans=main(s)\n    print(ans)\n\n__starting_point()", "passed": true, "time": 0.14, "memory": 14380.0, "status": "done"}, {"code": "S = input()\n\nif S == \"AAA\": print(\"No\")\nelif S == \"AAB\": print(\"Yes\")\nelif S == \"ABA\": print(\"Yes\")\nelif S == \"BAA\": print(\"Yes\")\nelif S == \"ABB\": print(\"Yes\")\nelif S == \"BAB\": print(\"Yes\")\nelif S == \"BBA\": print(\"Yes\")\nelif S == \"BBB\": print(\"No\")", "passed": true, "time": 0.14, "memory": 14140.0, "status": "done"}, {"code": "# \u99c5\uff11\u3001\uff12\u3001\uff13\n# \u7ba1\u7406\u72b6\u6cc1\u306fAAB,ABA\u3001BBA,BBB\u306a\u3069\u3001\u9577\u3055\uff13\u306e\u6587\u5b57\u5217\u3067\u8868\u3055\u308c\u308b\n# A\u3068B\u306e\u99c5\u306e\u9593\u306b\u306f\u30d0\u30b9\u3092\u904b\u884c\u3059\u308b\u3053\u3068\u306b\u3057\u305f\n# \u30d0\u30b9\u304c\u904b\u884c\u3059\u308b\u3053\u3068\u306b\u306a\u308b\u7d44\u307f\u5408\u308f\u305b\u304c\u5b58\u5728\u3059\u308b\u304b\u3069\u3046\u304b\u5224\u5b9a\u3057\u3001yes,no\u3067\u51fa\u529b\ns = input('')\nif s == 'AAA' or s == 'BBB':\n    print('No')\nelse:\n    print('Yes')", "passed": true, "time": 0.23, "memory": 14132.0, "status": "done"}, {"code": "S = input()\nif S == 'AAA' or S == 'BBB':\n    print('No')\nelse:\n    print('Yes')", "passed": true, "time": 0.14, "memory": 14156.0, "status": "done"}, {"code": "\ns=input()\n\nif s[0]==s[1]==s[2]:\n    print(\"No\")\nif s[0]!=s[1] or s[1]!=s[2]:\n    print(\"Yes\")\n\n", "passed": true, "time": 0.14, "memory": 14344.0, "status": "done"}, {"code": "s = input()\nif(s=='AAA'):\n  print('No')\nelif(s=='BBB'):\n  print('No')\nelse:\n  print('Yes')", "passed": true, "time": 0.14, "memory": 14140.0, "status": "done"}, {"code": "\ndef atc_158a(input_value: str) -> str:\n    if input_value == \"AAA\" or input_value == \"BBB\":\n        return \"No\"\n    return \"Yes\"\n\n\ninput_value = input()\nprint(atc_158a(input_value))", "passed": true, "time": 0.14, "memory": 14208.0, "status": "done"}, {"code": "s = input()\nprint('No' if s == 'AAA' or s== 'BBB' else 'Yes')", "passed": true, "time": 0.14, "memory": 14188.0, "status": "done"}, {"code": "print(['Yes','No'][len(set(input()))==1])", "passed": true, "time": 0.14, "memory": 14328.0, "status": "done"}, {"code": "s=input()\nif len(set(s))==1:\n    print(\"No\")\nelse:\n    print(\"Yes\")", "passed": true, "time": 0.14, "memory": 14116.0, "status": "done"}, {"code": "S = input()\nprint(\"No\" if S[0]==S[1]==S[2] else \"Yes\")", "passed": true, "time": 0.14, "memory": 14184.0, "status": "done"}, {"code": "S = input()\nprint(\"Yes\") if len(set(list(S)))!=1 else print(\"No\")", "passed": true, "time": 0.15, "memory": 14116.0, "status": "done"}, {"code": "s=input()\nif s==\"AAA\" or s==\"BBB\":\n  print(\"No\")\nelse:\n  print(\"Yes\")\n", "passed": true, "time": 0.14, "memory": 14372.0, "status": "done"}, {"code": "s = list(input())\nif len(set(s)) == 1:\n    print(\"No\")\nelse:\n    print(\"Yes\")", "passed": true, "time": 0.14, "memory": 14212.0, "status": "done"}, {"code": "print('YNeos'[len(set(input()))&1::2])", "passed": true, "time": 0.22, "memory": 14292.0, "status": "done"}, {"code": "S = input()\n \nif S.count('A') == 3 or S.count('B') == 3 :\n    print(\"No\")\nelse :\n    print(\"Yes\")", "passed": true, "time": 0.15, "memory": 14328.0, "status": "done"}, {"code": "def main():\n    s = input()\n    if s in 'AAA' or s in 'BBB':\n        print('No')\n    else:\n        print('Yes')\n        \ndef __starting_point():\n    main()\n__starting_point()", "passed": true, "time": 0.15, "memory": 14320.0, "status": "done"}, {"code": "S = str(input())\nif S[0] == S[1] == S[2]:\n  print('No')\nelse:\n  print('Yes')", "passed": true, "time": 0.15, "memory": 14240.0, "status": "done"}, {"code": "S = input()\n\nif \"AB\" in S or \"BA\" in S:\n    print(\"Yes\")\nelse:\n    print(\"No\")", "passed": true, "time": 0.14, "memory": 14100.0, "status": "done"}, {"code": "Station = []\nStation = input()\n\nif Station == \"AAA\":\n    print(\"No\")\n\nelif Station == \"BBB\":\n    print(\"No\")\nelse:\n    print(\"Yes\")", "passed": true, "time": 0.14, "memory": 14380.0, "status": "done"}, {"code": "s = input()\n\nif s == \"AAA\" or s == \"BBB\":\n    print(\"No\")\nelse:\n    print(\"Yes\")", "passed": true, "time": 0.15, "memory": 14356.0, "status": "done"}, {"code": "print('YNeos'[len(set(input()))==1::2])", "passed": true, "time": 0.14, "memory": 14280.0, "status": "done"}, {"code": "s = input()\nprint(\"No\" if len(set(s))==1 else \"Yes\")", "passed": true, "time": 0.14, "memory": 14256.0, "status": "done"}, {"code": "s=input()\ncount=s.count(\"B\")\nif count==3 or count==0:\n    print(\"No\")\nelse:\n    print(\"Yes\")", "passed": true, "time": 0.19, "memory": 14156.0, "status": "done"}, {"code": "moji = str(input())\nprint((\"No\",\"Yes\")[(\"B\" in moji) and (\"A\" in moji)])", "passed": true, "time": 0.16, "memory": 14132.0, "status": "done"}, {"code": "S = input()\nif(S[0] == S[1] and S[1] == S[2]):\n    print(\"No\")\n    return\nprint(\"Yes\")", "passed": true, "time": 0.19, "memory": 14380.0, "status": "done"}, {"code": "S=input()\nif S=='AAA'or S=='BBB':\n    print('No')\nelse:\n    print('Yes')", "passed": true, "time": 0.23, "memory": 14136.0, "status": "done"}, {"code": "S = input()\nprint('Yes' if 'A' in S and 'B' in S else 'No')", "passed": true, "time": 0.14, "memory": 14328.0, "status": "done"}, {"code": "S = input()\n\nif S.count('A') == 3 or S.count('B') == 3:\n    print('No')\nelse:\n    print('Yes')", "passed": true, "time": 0.2, "memory": 14168.0, "status": "done"}, {"code": "from sys import stdin,stdout\nfor _ in range(1):#int(stdin.readline())):\n    # n=int(stdin.readline())\n    # a=list(map(int,stdin.readline().split()))\n    s=len(set(input()))\n    print('Yes' if s>1 else 'No')", "passed": true, "time": 0.14, "memory": 14260.0, "status": "done"}, {"code": "S = input()\n\nif \"AB\" in S or \"BA\" in S:\n    print(\"Yes\")\nelse:\n    print(\"No\")", "passed": true, "time": 0.14, "memory": 14244.0, "status": "done"}, {"code": "s = input()\nif s[0] == s[1] == s[2]:\n    print('No')\nelse:\n    print('Yes')", "passed": true, "time": 0.14, "memory": 14340.0, "status": "done"}, {"code": "print(['Yes','No'][len(set(input()))&1])", "passed": true, "time": 0.14, "memory": 14184.0, "status": "done"}, {"code": "s = str(input())\nif s == \"AAA\" or s == \"BBB\":\n    print(\"No\")\nelse:\n    print(\"Yes\")", "passed": true, "time": 0.14, "memory": 14220.0, "status": "done"}, {"code": "def resolve():\n    s = input()\n    if s.count('A') == 0 or s.count('B')== 0:\n        print('No')\n    else:\n        print('Yes')\nresolve()", "passed": true, "time": 0.14, "memory": 14180.0, "status": "done"}, {"code": "s = input()\nif s[0] == s[1] and s[1] == s[2]:\n  print('No')\nelse:\n  print('Yes')", "passed": true, "time": 0.14, "memory": 14256.0, "status": "done"}, {"code": "s=input()\n\n\nif s[0]==\"A\" and s[1]==\"A\" and s[2]==\"A\":\n  print(\"No\")\nelif s[0]==\"B\" and s[1]==\"B\" and s[2]==\"B\":\n  print(\"No\")\nelse:\n  print(\"Yes\")", "passed": true, "time": 0.14, "memory": 14092.0, "status": "done"}, {"code": "d = input()\n\nif d == 'AAA' or d =='BBB':\n  print('No')\nelse:\n  print('Yes')", "passed": true, "time": 0.14, "memory": 14116.0, "status": "done"}, {"code": "S = input()\n\nif S == 'AAA':\n    print('No')\nif S == 'AAB':\n    print('Yes')\nif S == 'ABA':\n    print('Yes')\nif S == 'ABB':\n    print('Yes')\nif S == 'BAA':\n    print('Yes')\nif S == 'BAB':\n    print('Yes')\nif S == 'BBA':\n    print('Yes')\nif S == 'BBB':\n    print('No')", "passed": true, "time": 0.14, "memory": 14284.0, "status": "done"}, {"code": "S = input()\n\nif S[0] == S[1] == S[2]:\n    print('No')\nelse:\n    print('Yes')", "passed": true, "time": 0.14, "memory": 14368.0, "status": "done"}, {"code": "#ABC158\nS = input()\n#----------\u4ee5\u4e0a\u5165\u529b----------\nif 'A' in S and 'B' in S:\n    print('Yes')\nelse:\n    print('No')", "passed": true, "time": 0.15, "memory": 14056.0, "status": "done"}, {"code": "s=input()\nif s==\"AAA\" or s=='BBB':\n  print('No')\nelse:\n  print('Yes')", "passed": true, "time": 0.14, "memory": 14176.0, "status": "done"}, {"code": "S = input()\n\nS = list(S)\n\nif S[0] == S[1] == S[2]:\n    print('No')\nelse:\n    print('Yes')", "passed": true, "time": 0.14, "memory": 14176.0, "status": "done"}, {"code": "S=input()\nprint('Yes') if abs(S.count('A')-S.count('B'))!=3 else print('No')", "passed": true, "time": 0.14, "memory": 14324.0, "status": "done"}, {"code": "s = input()\nif s == 'AAA' or s == 'BBB':\n    print('No')\nelse:\n    print('Yes')", "passed": true, "time": 0.14, "memory": 14236.0, "status": "done"}, {"code": "s = input()\n\nif ('A' in s) and ('B' in s):\n    print('Yes')\nelse:\n    print('No')\n", "passed": true, "time": 0.14, "memory": 14332.0, "status": "done"}, {"code": "s = input()\n\nif s == 'AAA' or s == 'BBB':\n    print('No')\nelse:\n    print('Yes')", "passed": true, "time": 0.14, "memory": 14244.0, "status": "done"}, {"code": "S=input()\nif S==\"AAA\" or S==\"BBB\":\n  print(\"No\")\nelse:\n  print(\"Yes\")", "passed": true, "time": 0.15, "memory": 14388.0, "status": "done"}]