program main
  implicit none

  integer :: a, b, c

  read *, a, b, c

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

end program main
