const fs = require("fs");
let num = fs.readFileSync("/dev/stdin", "utf-8");
num = num.split(" ");
num.sort((x, y) => x - y);
let flag = false;
if(!(num[0] === num[1] && num[1] !== num[2]))flag = true;
console.log(flag ? "Yes" : "No")
