function main(input) {
  var marginDelete = input.trim();
  var args = marginDelete.split('');
  if ( args[0] === args[1] && args[0] === args[2]) {
    return "No";
  } else {
    return "Yes";
  }
}
console.log(main(require('fs').readFileSync('/dev/stdin', 'utf8')));