// inputに入力データ全体が入る
function Main(input) {
	// 1行目がinput[0], 2行目がinput[1], …に入る
	input = input.split("\n");
  let line1 = input[0].split(" ");
  
  let A = line1[0];
  let B = line1[1];
  let C = line1[2];

  let cnt = 0;

  if(A === B) cnt++;
  if(B === C) cnt++;
  if(C === A) cnt++;

  if(cnt === 1) console.log("Yes");
  else console.log("No");

}

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