#!/bin/bash
':' /*
docker run --rm -it -v $(cd $(dirname $0) && pwd):/vo:ro node:5.2-slim \
   /bin/bash -c "node /vo/$(basename $0) < /vo/g.inp"
exit $?
*/
'use strict';

let main = function(input) {
   let arr = input[0].split(' ');
   let obj = {};
   obj = arr.reduce((x, y)=>{
      x[y] = 1;
      return x;
   }, {});
   let ans = "No";
   if(Object.keys(obj).length==2) ans = "Yes";
   return ans;
}

console.log(main(require('fs').readFileSync('/dev/stdin', 'utf-8').trim().split('\n')));