function Main(input) {
    var A = parseInt(input[0], 10);
    var B = parseInt(input[1], 10);
    var C = parseInt(input[2], 10);
    
    var same = 0;

    if (A === B) {
        same++;
    }
    if (B === C) {
        same++;
    }
    if (A === C) {
        same++;
    }
    console.log(same === 1 ? 'Yes' : 'No');
}

Main(require("fs").readFileSync("/dev/stdin", "utf8").trim().split(/\n|\s/));