      PROGRAM piyo
      IMPLICIT NONE
      
      integer :: a,b,c
      logical flag1,flag2
      
      read*,a,b,c
      
      flag1 = a==b.and.b==c
      flag2 = a/=b.and.b/=c.and.a/=c
      
      if(flag1.or.flag2)then
        print*,'No'
      else
        print*,'Yes'
      end if
      
      
      
      
      END PROGRAM
      