program main
	implicit none
    integer::a,b,c
    read(*,*) a,b,c
    if(a==b .and. a/=c)then
    	write(*,*) 'Yes'
    else if(a==c .and. a/=b)then
    	write(*,*) 'Yes'
    else if(b==c .and. b/=a)then
    	write(*,*) 'Yes'
    else
    	write(*,*)'No'
    end if
    stop
end program main