import java.util.*;
public class Main{
	public static void main(String args[]){
		
		Scanner ob = new Scanner(System.in);
		String S = ob.next();
		int A = 0;
		int B = 0;
	        
		for(int i = 0; i < 3; i++){
			if(S.charAt(i) == 'A'){
				++A;
			}
			else{
				++B;
			}	
		}
		
		if((A > 0) && (B > 0)){
			System.out.println("Yes");
		}
		else{
			System.out.println("No");
		}
	}
} import java.util.*; util.* java public class Main{
	public static void main(String args[]){
		
		Scanner ob = new Scanner(System.in);
		String S = ob.next();
		int A = 0;
		int B = 0;
	        
		for(int i = 0; i < 3; i++){
			if(S.charAt(i) == 'A'){
				++A;
			}
			else{
				++B;
			}	
		}
		
		if((A > 0) && (B > 0)){
			System.out.println("Yes");
		}
		else{
			System.out.println("No");
		}
	}
} Main public static void main(String args[]){
		
		Scanner ob = new Scanner(System.in);
		String S = ob.next();
		int A = 0;
		int B = 0;
	        
		for(int i = 0; i < 3; i++){
			if(S.charAt(i) == 'A'){
				++A;
			}
			else{
				++B;
			}	
		}
		
		if((A > 0) && (B > 0)){
			System.out.println("Yes");
		}
		else{
			System.out.println("No");
		}
	} main {
		
		Scanner ob = new Scanner(System.in);
		String S = ob.next();
		int A = 0;
		int B = 0;
	        
		for(int i = 0; i < 3; i++){
			if(S.charAt(i) == 'A'){
				++A;
			}
			else{
				++B;
			}	
		}
		
		if((A > 0) && (B > 0)){
			System.out.println("Yes");
		}
		else{
			System.out.println("No");
		}
	} Scanner ob = new Scanner(System.in); ob new Scanner(System.in) String S = ob.next(); S ob.next() ob.next ob int A = 0; A 0 int B = 0; B 0 for(int i = 0; i < 3; i++){
			if(S.charAt(i) == 'A'){
				++A;
			}
			else{
				++B;
			}	
		} int i = 0; int i = 0; i 0 i < 3 i 3 i++ i++ i {
			if(S.charAt(i) == 'A'){
				++A;
			}
			else{
				++B;
			}	
		} {
			if(S.charAt(i) == 'A'){
				++A;
			}
			else{
				++B;
			}	
		} if(S.charAt(i) == 'A'){
				++A;
			}
			else{
				++B;
			} S.charAt(i) == 'A' S.charAt(i) S.charAt S i 'A' {
				++A;
			} ++A A {
				++B;
			} ++B B if((A > 0) && (B > 0)){
			System.out.println("Yes");
		}
		else{
			System.out.println("No");
		} (A > 0) && (B > 0) (A > 0) A 0 (B > 0) B 0 {
			System.out.println("Yes");
		} System.out.println("Yes") System.out.println System.out System System.out "Yes" {
			System.out.println("No");
		} System.out.println("No") System.out.println System.out System System.out "No" String args[] args public class Main{
	public static void main(String args[]){
		
		Scanner ob = new Scanner(System.in);
		String S = ob.next();
		int A = 0;
		int B = 0;
	        
		for(int i = 0; i < 3; i++){
			if(S.charAt(i) == 'A'){
				++A;
			}
			else{
				++B;
			}	
		}
		
		if((A > 0) && (B > 0)){
			System.out.println("Yes");
		}
		else{
			System.out.println("No");
		}
	}
} public class Main{
	public static void main(String args[]){
		
		Scanner ob = new Scanner(System.in);
		String S = ob.next();
		int A = 0;
		int B = 0;
	        
		for(int i = 0; i < 3; i++){
			if(S.charAt(i) == 'A'){
				++A;
			}
			else{
				++B;
			}	
		}
		
		if((A > 0) && (B > 0)){
			System.out.println("Yes");
		}
		else{
			System.out.println("No");
		}
	}
} Main
import java.util.*;
public class Main{
	public static void main(String args[]){
		
		Scanner ob = new Scanner(System.in);
		String S = ob.next();
		int A = 0;
		int B = 0;
	        
		for(int i = 0; i < 3; i++){
			if(S.charAt(i) == 'A'){
				++A;
			}
			else{
				++B;
			}	
		}
		
		if((A > 0) && (B > 0)){
			System.out.println("Yes");
		}
		else{
			System.out.println("No");
		}
	}
}
