"use strict";
function main(input) {
  let n = input[0].trim().split(" ");
  for(let i=0;i<n;i++){
    n[i] = parseInt(n[i]);
  }

  if (n[0]==n[1] && n[0]==n[2]){
    console.log("No");
  }else if(n[0]==n[1] || n[0]==n[2] || n[1]==n[2]){
    console.log("Yes");
  }else{
    console.log("No");
  }
  
}
main(require('fs').readFileSync('/dev/stdin', 'utf8').trim().split("\n"));