program main

  implicit none
  
  !character(10) :: s, t, u
  integer :: a, b, c, n
  

  read(*,*) a, b, c
  
  n = 0
  if( a == b ) then
    n = n + 1
  end if
  if( a == c ) then
    n = n + 1
  end if
  if( b == c ) then
    n = n + 1
  end if

  if ( n == 1 ) then
    print*, "Yes"
  else
    print*, "No"
  end if
  
end program main
