'use strict'
function main(inp) {
  inp = inp.trim().split('');
  let ans = "Yes";
  if(inp[0]== inp[1] && inp[0] == inp[2]){
  	ans = "No"
  }
  console.log(ans);
}

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