"use strict";
const main = arg => {
  	const set1 = new Set(arg.trim().split(" "));
  	let ans = "No";
  	if(set1.size == 2){
    	ans = "Yes";
    } 
  	

  	console.log(ans);
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));