function main(input){
    inputI = input.split(' ');
    count=0
    out='No';
    if(inputI[0]==inputI[1]){
        count++;
    }
    if(inputI[0]==inputI[2]){
        count++;
    }
    if(inputI[1]==inputI[2]){
        count++;
    }

    if(0<count && count<3){
        out='Yes';
    }

    console.log(out);

}

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