'use strict';
function main(input) {
  input = input.split(" ");
  const a = parseInt(input[0], 10);
  const b = parseInt(input[1], 10);
  const c = parseInt(input[2], 10);
  
  if ((a === b && b === c) || 
  (a !== b && a !== b && b !== c)) {
    console.log('No');
  } else {
    console.log('Yes');
  }
}

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