function main(input){
    out='No';
    inputA=input[0]


    if(input[1]!=inputA||input[2]!=inputA){
        out='Yes';
    }

    console.log(out);

}

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