function main(input) {
    var s = new Set(input.trim().split(' '));
    if (s.size == 2) {
        console.log('Yes');
    } else {
        console.log('No');
    }
}

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