"use strict"
function Main(input) {
  input = input.trim().split(' ').map(Number);
  const A = input[0];
  const B = input[1];
  const C = input[2];

  let ret = 'No';

  if(A === B && A !== C){
    ret = 'Yes';
  } else if ( A === C && A !== B){
    ret = 'Yes';
  }  else if ( B === C && B !== A){
    ret = 'Yes';
  }

  console.log(ret);
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));