import java.util.*;

public class Main {
public static void main(String[] args) {
	
	Scanner sc = new Scanner(System.in);
		
 	String str  = sc.next();
  
  	char[] c_arr = str.toCharArray();
    
    sc.close();
  	
    if (c_arr[0] == 'A' && c_arr[1] == 'A' && c_arr[2] == 'A') {
         System.out.print("No"); 
    } else if (c_arr[0] == 'B' && c_arr[1] == 'B' && c_arr[2] == 'B') {
         System.out.print("No"); 
    } else {
         System.out.print("Yes"); 
    }
    
	
	}
} import java.util.*; util.* java public class Main {
public static void main(String[] args) {
	
	Scanner sc = new Scanner(System.in);
		
 	String str  = sc.next();
  
  	char[] c_arr = str.toCharArray();
    
    sc.close();
  	
    if (c_arr[0] == 'A' && c_arr[1] == 'A' && c_arr[2] == 'A') {
         System.out.print("No"); 
    } else if (c_arr[0] == 'B' && c_arr[1] == 'B' && c_arr[2] == 'B') {
         System.out.print("No"); 
    } else {
         System.out.print("Yes"); 
    }
    
	
	}
} Main public static void main(String[] args) {
	
	Scanner sc = new Scanner(System.in);
		
 	String str  = sc.next();
  
  	char[] c_arr = str.toCharArray();
    
    sc.close();
  	
    if (c_arr[0] == 'A' && c_arr[1] == 'A' && c_arr[2] == 'A') {
         System.out.print("No"); 
    } else if (c_arr[0] == 'B' && c_arr[1] == 'B' && c_arr[2] == 'B') {
         System.out.print("No"); 
    } else {
         System.out.print("Yes"); 
    }
    
	
	} main {
	
	Scanner sc = new Scanner(System.in);
		
 	String str  = sc.next();
  
  	char[] c_arr = str.toCharArray();
    
    sc.close();
  	
    if (c_arr[0] == 'A' && c_arr[1] == 'A' && c_arr[2] == 'A') {
         System.out.print("No"); 
    } else if (c_arr[0] == 'B' && c_arr[1] == 'B' && c_arr[2] == 'B') {
         System.out.print("No"); 
    } else {
         System.out.print("Yes"); 
    }
    
	
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String str  = sc.next(); str sc.next() sc.next sc char[] c_arr = str.toCharArray(); c_arr str.toCharArray() str.toCharArray str sc.close() sc.close sc if (c_arr[0] == 'A' && c_arr[1] == 'A' && c_arr[2] == 'A') {
         System.out.print("No"); 
    } else if (c_arr[0] == 'B' && c_arr[1] == 'B' && c_arr[2] == 'B') {
         System.out.print("No"); 
    } else {
         System.out.print("Yes"); 
    } c_arr[0] == 'A' && c_arr[1] == 'A' && c_arr[2] == 'A' c_arr[0] == 'A' && c_arr[1] == 'A' && c_arr[2] == 'A' c_arr[0] == 'A' c_arr[0] c_arr 0 'A' c_arr[1] == 'A' c_arr[1] c_arr 1 'A' c_arr[2] == 'A' c_arr[2] c_arr 2 'A' {
         System.out.print("No"); 
    } System.out.print("No") System.out.print System.out System System.out "No" if (c_arr[0] == 'B' && c_arr[1] == 'B' && c_arr[2] == 'B') {
         System.out.print("No"); 
    } else {
         System.out.print("Yes"); 
    } c_arr[0] == 'B' && c_arr[1] == 'B' && c_arr[2] == 'B' c_arr[0] == 'B' && c_arr[1] == 'B' && c_arr[2] == 'B' c_arr[0] == 'B' c_arr[0] c_arr 0 'B' c_arr[1] == 'B' c_arr[1] c_arr 1 'B' c_arr[2] == 'B' c_arr[2] c_arr 2 'B' {
         System.out.print("No"); 
    } System.out.print("No") System.out.print System.out System System.out "No" {
         System.out.print("Yes"); 
    } System.out.print("Yes") System.out.print 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 str  = sc.next();
  
  	char[] c_arr = str.toCharArray();
    
    sc.close();
  	
    if (c_arr[0] == 'A' && c_arr[1] == 'A' && c_arr[2] == 'A') {
         System.out.print("No"); 
    } else if (c_arr[0] == 'B' && c_arr[1] == 'B' && c_arr[2] == 'B') {
         System.out.print("No"); 
    } else {
         System.out.print("Yes"); 
    }
    
	
	}
} public class Main {
public static void main(String[] args) {
	
	Scanner sc = new Scanner(System.in);
		
 	String str  = sc.next();
  
  	char[] c_arr = str.toCharArray();
    
    sc.close();
  	
    if (c_arr[0] == 'A' && c_arr[1] == 'A' && c_arr[2] == 'A') {
         System.out.print("No"); 
    } else if (c_arr[0] == 'B' && c_arr[1] == 'B' && c_arr[2] == 'B') {
         System.out.print("No"); 
    } else {
         System.out.print("Yes"); 
    }
    
	
	}
} Main
import java.util.*;

public class Main {
public static void main(String[] args) {
	
	Scanner sc = new Scanner(System.in);
		
 	String str  = sc.next();
  
  	char[] c_arr = str.toCharArray();
    
    sc.close();
  	
    if (c_arr[0] == 'A' && c_arr[1] == 'A' && c_arr[2] == 'A') {
         System.out.print("No"); 
    } else if (c_arr[0] == 'B' && c_arr[1] == 'B' && c_arr[2] == 'B') {
         System.out.print("No"); 
    } else {
         System.out.print("Yes"); 
    }
    
	
	}
}