program abc155a
integer :: a,b,c
read(*,*) a,b,c
 
if(a == b .and. b != c)  then
write(*,*) "Yes"
else if(b == c .and. c != a) then
write(*,*) "Yes"
else if (c == a .and. a != b) then
write(*,*) "Yes"
else
write(*,*) "No"
end if
 
 
end program abc155a