import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		String s = sc.next().replace("A", "");

		System.out.println(s.length() == 0 || s.length() == 3 ? "No" : "Yes");
	}
} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		String s = sc.next().replace("A", "");

		System.out.println(s.length() == 0 || s.length() == 3 ? "No" : "Yes");
	}
} Main public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		String s = sc.next().replace("A", "");

		System.out.println(s.length() == 0 || s.length() == 3 ? "No" : "Yes");
	} main {

		Scanner sc = new Scanner(System.in);

		String s = sc.next().replace("A", "");

		System.out.println(s.length() == 0 || s.length() == 3 ? "No" : "Yes");
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String s = sc.next().replace("A", ""); s sc.next().replace("A", "") sc.next().replace sc.next() sc.next sc "A" "" System.out.println(s.length() == 0 || s.length() == 3 ? "No" : "Yes") System.out.println System.out System System.out s.length() == 0 || s.length() == 3 ? "No" : "Yes" s.length() == 0 || s.length() == 3 s.length() == 0 s.length() s.length s 0 s.length() == 3 s.length() s.length s 3 "No" "Yes" String[] args args public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		String s = sc.next().replace("A", "");

		System.out.println(s.length() == 0 || s.length() == 3 ? "No" : "Yes");
	}
} public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		String s = sc.next().replace("A", "");

		System.out.println(s.length() == 0 || s.length() == 3 ? "No" : "Yes");
	}
} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		String s = sc.next().replace("A", "");

		System.out.println(s.length() == 0 || s.length() == 3 ? "No" : "Yes");
	}
}