function main(input) {
  input = input.trim();
  const a = input.split(" ").map(Number);
 
  console.log((Array.from(new Set(a)).length)==2?'Yes':'No');
 
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));