import java.util.*;
import java.io.*; 

public class Main {
	
	public static void main(String... string) {
		Scanner sc = new Scanner(System.in); 
		String s = sc.nextLine(); 
		if(s.equals("BBB") || s.equals("AAA"))
			System.out.println("No"); 
		else System.out.println("Yes"); 
	}
} import java.util.*; util.* java import java.io.*; io.* java public class Main {
	
	public static void main(String... string) {
		Scanner sc = new Scanner(System.in); 
		String s = sc.nextLine(); 
		if(s.equals("BBB") || s.equals("AAA"))
			System.out.println("No"); 
		else System.out.println("Yes"); 
	}
} Main public static void main(String... string) {
		Scanner sc = new Scanner(System.in); 
		String s = sc.nextLine(); 
		if(s.equals("BBB") || s.equals("AAA"))
			System.out.println("No"); 
		else System.out.println("Yes"); 
	} main {
		Scanner sc = new Scanner(System.in); 
		String s = sc.nextLine(); 
		if(s.equals("BBB") || s.equals("AAA"))
			System.out.println("No"); 
		else System.out.println("Yes"); 
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String s = sc.nextLine(); s sc.nextLine() sc.nextLine sc if(s.equals("BBB") || s.equals("AAA"))
			System.out.println("No"); 
		else System.out.println("Yes"); s.equals("BBB") || s.equals("AAA") s.equals("BBB") s.equals s "BBB" s.equals("AAA") s.equals s "AAA" System.out.println("No") System.out.println System.out System System.out "No" System.out.println("Yes") System.out.println System.out System System.out "Yes" String... string string public class Main {
	
	public static void main(String... string) {
		Scanner sc = new Scanner(System.in); 
		String s = sc.nextLine(); 
		if(s.equals("BBB") || s.equals("AAA"))
			System.out.println("No"); 
		else System.out.println("Yes"); 
	}
} public class Main {
	
	public static void main(String... string) {
		Scanner sc = new Scanner(System.in); 
		String s = sc.nextLine(); 
		if(s.equals("BBB") || s.equals("AAA"))
			System.out.println("No"); 
		else System.out.println("Yes"); 
	}
} Main
import java.util.*;
import java.io.*; 

public class Main {
	
	public static void main(String... string) {
		Scanner sc = new Scanner(System.in); 
		String s = sc.nextLine(); 
		if(s.equals("BBB") || s.equals("AAA"))
			System.out.println("No"); 
		else System.out.println("Yes"); 
	}
}