"use strict";
const Main = (input) =>{
   let xs = input.trim().split(' ').map(v=>parseInt(v,10));
   const compare = (a, b) => {
   return a - b;
   }
   xs.sort(compare);
   let count = 0;
   for(let i=0; i<xs.length; i++){
      if(xs[i]==xs[i+1]){
      count +=1;
      }else{
      count +=0;
      }
   }
   if(count==0 || count==2){
     console.log('No');
   }else if(count==1){
     console.log('Yes');
   }
}
Main(require('fs').readFileSync('/dev/stdin','utf8'));