function Main(input) {
    input = input.split(" ");
    console.log(input)
	if (input === "AAA" || input === "BBB")  console.log("No");
  	else console.log("Yes");
}
 
 
Main(require("fs").readFileSync("/dev/stdin", "utf8"));