function main(inputs) {
  	inputs.forEach( input => {
      if(input === "AAA" || input === "BBB") {
          console.log("No");
      }else {
          console.log("Yes");
      }
    })
}
 
main(require('fs').readFileSync('/dev/stdin', 'utf8').split("\n"));