function Main (input) {
  input = input.split("\n")[0].split(" ").map(inp => parseInt(inp, 10));
  var ans = "No";
  var a = input[0], b = input[1], c = input[2];
  if (a == b && a != c) ans = "Yes";
  else if (a == c && a != b) ans = "Yes";
  else if (b == c && a != b) ans = "Yes";
  console.log(ans);
}

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