'use strict'


function Main(input) {
  input = input.trim().split(' ').map(s => parseInt(s))
  const a = input[0]
  const b = input[1]
  const c = input[2]

  let flg = false
  if(a === b ) {
    if( b !== c) flg = true
  } else if (b === c) {
    if( b !== a) flg = true
  } else if (c === a) {
    if (b !== a) flg = true
  }

  if(flg) {
    console.log('Yes')
  } else {
    console.log('No')
  }



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