import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
			String srt=sc.nextLine();
			String srt2="AAA";
			String srt3="BBB";
			if(srt.equals(srt2)||srt.equals(srt3)){
				System.out.println("No");
			}
			else{
				System.out.println("Yes");
			}
		}
	} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
			String srt=sc.nextLine();
			String srt2="AAA";
			String srt3="BBB";
			if(srt.equals(srt2)||srt.equals(srt3)){
				System.out.println("No");
			}
			else{
				System.out.println("Yes");
			}
		}
	} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
			String srt=sc.nextLine();
			String srt2="AAA";
			String srt3="BBB";
			if(srt.equals(srt2)||srt.equals(srt3)){
				System.out.println("No");
			}
			else{
				System.out.println("Yes");
			}
		} main {
		Scanner sc = new Scanner(System.in);
			String srt=sc.nextLine();
			String srt2="AAA";
			String srt3="BBB";
			if(srt.equals(srt2)||srt.equals(srt3)){
				System.out.println("No");
			}
			else{
				System.out.println("Yes");
			}
		} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String srt=sc.nextLine(); srt sc.nextLine() sc.nextLine sc String srt2="AAA"; srt2 "AAA" String srt3="BBB"; srt3 "BBB" if(srt.equals(srt2)||srt.equals(srt3)){
				System.out.println("No");
			}
			else{
				System.out.println("Yes");
			} srt.equals(srt2)||srt.equals(srt3) srt.equals(srt2) srt.equals srt srt2 srt.equals(srt3) srt.equals srt srt3 {
				System.out.println("No");
			} System.out.println("No") System.out.println System.out System System.out "No" {
				System.out.println("Yes");
			} System.out.println("Yes") System.out.println System.out System System.out "Yes" String[] args args public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
			String srt=sc.nextLine();
			String srt2="AAA";
			String srt3="BBB";
			if(srt.equals(srt2)||srt.equals(srt3)){
				System.out.println("No");
			}
			else{
				System.out.println("Yes");
			}
		}
	} public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
			String srt=sc.nextLine();
			String srt2="AAA";
			String srt3="BBB";
			if(srt.equals(srt2)||srt.equals(srt3)){
				System.out.println("No");
			}
			else{
				System.out.println("Yes");
			}
		}
	} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
			String srt=sc.nextLine();
			String srt2="AAA";
			String srt3="BBB";
			if(srt.equals(srt2)||srt.equals(srt3)){
				System.out.println("No");
			}
			else{
				System.out.println("Yes");
			}
		}
	}
