function main(input){
  const ichi = input.slice(1,2);
  const args = input.split(ichi);
  if(args.length-1==2){
    console.log("Yes");
  }else{
    console.log("No");
  }
}

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