function main(input) {
  var args = input.trim().split(" ");
  var a = parseInt(args[0], 10);
  var b = parseInt(args[1], 10);
  var c = parseInt(args[2], 10);
  if ( a == b && a != c) {
    return "Yes";
  } else if ( a!= b && a == c) {
    return "Yes";
  } else if ( b!= a && b == c) {
    return "Yes";
  } else {
    return "No";
  }
}
console.log(main(require('fs').readFileSync('/dev/stdin', 'utf8')));