function main(inp) {
    var input = inp.trim();

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

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