program test01
 implicit none
 integer A, B, C

 read *, A, B, C

 if ( A == B ) then
  if ( B == C ) then
   print '(A)', 'No'
   stop
  else
   print '(A)', 'Yes'
  end if
 else
  if ( B == C ) then
   print '(A)', 'Yes'
  end if
  if ( C == A ) then
   print '(A)', 'Yes'
  end if
 end if
  if ( A /= B .and. B /= C .and. C /= A ) then
   print '(A)', 'No'
  end if

endprogram test01
