function Main(input){
    var s = input.trim();

    if(s[0]==s[1]&&s[1]==s[2]){
        console.log("No");
    }else{
        console.log("Yes");
    }
}


Main(require("fs").readFileSync("/dev/stdin", "utf8"));