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