import java.util.Scanner;

class Main{
	
	public static void main(String args[]){
      
	  Scanner scanner = new Scanner(System.in);
      String input = scanner.nextLine();
      
      if(input.equals("AAA") == true){
        System.out.println("No");
	  }else if(input.equals("BBB") == true){
        System.out.println("No");
      }else{
        System.out.println("Yes");
      }
	}
} import java.util.Scanner; Scanner java.util class Main{
	
	public static void main(String args[]){
      
	  Scanner scanner = new Scanner(System.in);
      String input = scanner.nextLine();
      
      if(input.equals("AAA") == true){
        System.out.println("No");
	  }else if(input.equals("BBB") == true){
        System.out.println("No");
      }else{
        System.out.println("Yes");
      }
	}
} Main public static void main(String args[]){
      
	  Scanner scanner = new Scanner(System.in);
      String input = scanner.nextLine();
      
      if(input.equals("AAA") == true){
        System.out.println("No");
	  }else if(input.equals("BBB") == true){
        System.out.println("No");
      }else{
        System.out.println("Yes");
      }
	} main {
      
	  Scanner scanner = new Scanner(System.in);
      String input = scanner.nextLine();
      
      if(input.equals("AAA") == true){
        System.out.println("No");
	  }else if(input.equals("BBB") == true){
        System.out.println("No");
      }else{
        System.out.println("Yes");
      }
	} Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) String input = scanner.nextLine(); input scanner.nextLine() scanner.nextLine scanner if(input.equals("AAA") == true){
        System.out.println("No");
	  }else if(input.equals("BBB") == true){
        System.out.println("No");
      }else{
        System.out.println("Yes");
      } input.equals("AAA") == true input.equals("AAA") input.equals input "AAA" true {
        System.out.println("No");
	  } System.out.println("No") System.out.println System.out System System.out "No" if(input.equals("BBB") == true){
        System.out.println("No");
      }else{
        System.out.println("Yes");
      } input.equals("BBB") == true input.equals("BBB") input.equals input "BBB" true {
        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
import java.util.Scanner;

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