function Main(input) {
	var n = input.split(' ');
	var c = 0;
	for(var i=0; i<3; i++){
		n[i] = parseInt(n[i], 10);
	}
	if(n[0] == n[1]){
		c++;
	}
	if(n[1] == n[2]){
		c++;
	}
	if(n[2] == n[0]){
		c++;
	}
	if(c == 1){
		console.log('Yes');
	}else{
		console.log('No');
	}
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));
