import java.io.BufferedReader;
import java.io.InputStreamReader;

public class Main {

	static int[] S ;
	public static void main(String[] args) throws Exception {
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		String W = in.readLine();

		if(W.replaceAll("A", "").length() == 3||W.replaceAll("A", "").length()==0){
			System.out.println("No");
		}else{
			System.out.println("Yes");
		}
	}


} import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main {

	static int[] S ;
	public static void main(String[] args) throws Exception {
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		String W = in.readLine();

		if(W.replaceAll("A", "").length() == 3||W.replaceAll("A", "").length()==0){
			System.out.println("No");
		}else{
			System.out.println("Yes");
		}
	}


} Main static int[] S ; S public static void main(String[] args) throws Exception {
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		String W = in.readLine();

		if(W.replaceAll("A", "").length() == 3||W.replaceAll("A", "").length()==0){
			System.out.println("No");
		}else{
			System.out.println("Yes");
		}
	} main {
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		String W = in.readLine();

		if(W.replaceAll("A", "").length() == 3||W.replaceAll("A", "").length()==0){
			System.out.println("No");
		}else{
			System.out.println("Yes");
		}
	} BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); in new BufferedReader(new InputStreamReader(System.in)) String W = in.readLine(); W in.readLine() in.readLine in if(W.replaceAll("A", "").length() == 3||W.replaceAll("A", "").length()==0){
			System.out.println("No");
		}else{
			System.out.println("Yes");
		} W.replaceAll("A", "").length() == 3||W.replaceAll("A", "").length()==0 W.replaceAll("A", "").length() == 3 W.replaceAll("A", "").length() W.replaceAll("A", "").length W.replaceAll("A", "") W.replaceAll W "A" "" 3 W.replaceAll("A", "").length()==0 W.replaceAll("A", "").length() W.replaceAll("A", "").length W.replaceAll("A", "") W.replaceAll W "A" "" 0 {
			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 public class Main {

	static int[] S ;
	public static void main(String[] args) throws Exception {
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		String W = in.readLine();

		if(W.replaceAll("A", "").length() == 3||W.replaceAll("A", "").length()==0){
			System.out.println("No");
		}else{
			System.out.println("Yes");
		}
	}


} public class Main {

	static int[] S ;
	public static void main(String[] args) throws Exception {
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		String W = in.readLine();

		if(W.replaceAll("A", "").length() == 3||W.replaceAll("A", "").length()==0){
			System.out.println("No");
		}else{
			System.out.println("Yes");
		}
	}


} Main
import java.io.BufferedReader;
import java.io.InputStreamReader;

public class Main {

	static int[] S ;
	public static void main(String[] args) throws Exception {
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		String W = in.readLine();

		if(W.replaceAll("A", "").length() == 3||W.replaceAll("A", "").length()==0){
			System.out.println("No");
		}else{
			System.out.println("Yes");
		}
	}


}
