program main
  implicit none
  integer :: a, b, c
  logical :: judge
  read *, a, b, c

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

end program