import java.util.*;

public class Main {
public static void main(String[] args) {
		
		Scanner keyboard = new Scanner(System.in); 
		
		String S  = keyboard.next();
		
		String ans = "No";
		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 ) {
			ans = "Yes";
		}
		
		System.out.println(ans);
		keyboard.close();	
	}
} import java.util.*; util.* java public class Main {
public static void main(String[] args) {
		
		Scanner keyboard = new Scanner(System.in); 
		
		String S  = keyboard.next();
		
		String ans = "No";
		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 ) {
			ans = "Yes";
		}
		
		System.out.println(ans);
		keyboard.close();	
	}
} Main public static void main(String[] args) {
		
		Scanner keyboard = new Scanner(System.in); 
		
		String S  = keyboard.next();
		
		String ans = "No";
		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 ) {
			ans = "Yes";
		}
		
		System.out.println(ans);
		keyboard.close();	
	} main {
		
		Scanner keyboard = new Scanner(System.in); 
		
		String S  = keyboard.next();
		
		String ans = "No";
		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 ) {
			ans = "Yes";
		}
		
		System.out.println(ans);
		keyboard.close();	
	} Scanner keyboard = new Scanner(System.in); keyboard new Scanner(System.in) String S  = keyboard.next(); S keyboard.next() keyboard.next keyboard String ans = "No"; ans "No" 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 ) {
			ans = "Yes";
		} a != 0 && b != 0 a != 0 a 0 b != 0 b 0 {
			ans = "Yes";
		} ans = "Yes" ans "Yes" System.out.println(ans) System.out.println System.out System System.out ans keyboard.close() keyboard.close keyboard String[] args args public class Main {
public static void main(String[] args) {
		
		Scanner keyboard = new Scanner(System.in); 
		
		String S  = keyboard.next();
		
		String ans = "No";
		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 ) {
			ans = "Yes";
		}
		
		System.out.println(ans);
		keyboard.close();	
	}
} public class Main {
public static void main(String[] args) {
		
		Scanner keyboard = new Scanner(System.in); 
		
		String S  = keyboard.next();
		
		String ans = "No";
		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 ) {
			ans = "Yes";
		}
		
		System.out.println(ans);
		keyboard.close();	
	}
} Main
import java.util.*;

public class Main {
public static void main(String[] args) {
		
		Scanner keyboard = new Scanner(System.in); 
		
		String S  = keyboard.next();
		
		String ans = "No";
		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 ) {
			ans = "Yes";
		}
		
		System.out.println(ans);
		keyboard.close();	
	}
}
