function Main (S) {
  var s = S.split(' ') 
  console.log((s[0] === s[1] && s[0] !== s[2])
      || (s[0] === s[2] && s[0] !== s[1])
      || (s[2] === s[1] && s[2] !== s[0])
  ? 'Yes' : 'No')
}
 
Main(require("fs").readFileSync("/dev/stdin", "utf8"));