function main(input) {
  const [A,B,C] = input.split(' ');
  let res = "";
        
  if (A === B && A === C && B === C) {
    res = "No"
  } else if (A === B || B === C || C === A) {
  	res = "Yes"
  } else {
    res = "No"
  }
  console.log(res);
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));