program answer
  implicit none
  integer :: A,B,C
  read(*,*) A, B, C
  if(A==B.and.B/=C) then
     write(*,*) 'Yes'
  else if(A==C.and.A/=B) then
     write(*,*) 'Yes'
  else if(B==C.and.A/=B) then
     write(*,*) 'Yes'
  else
     write(*,*) 'No'
  end if

  stop
 end program answer