program main
      implicit none
      integer :: a, b, c

      read *, a, b, c

      if ( (a == b) .and. (b /= c)) then
        print *, 'Yes'
      else if ( (b == c) .and. (a /= c)) then
        print *, 'Yes'
      else if ( (a == c) .and. (b /= c)) then
        print *, 'Yes'
      else
        print *, 'No'
      end if

end program main

