"use strict";
    
const main = arg => {
    arg = arg.trim().split("\n");
    const A = parseInt(arg[0].split(" ")[0]);
    const B = parseInt(arg[0].split(" ")[1]);
    const C = parseInt(arg[0].split(" ")[2]);
    
    const array = [A, B, C];
    const set = new Set(array);
    
    console.log(set.size === 2 ? "Yes" : "No");
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));