program example
	implicit none

	integer :: A,B,C,count=0
    
    read(*,*) A,B,C
    
    if (A==B .or. B==C .or. A==C) then
    	if (A==B) then
        	count=count+1
        end if
        
        
        if (B==C) then
        	count=count+1
        end if
        
        if (A==C) then
        	count=count+1
        end if
    end if
    
    if (count==1) then
    	write(*,*) "Yes"
    else
    	write(*,*) "No"
    end if
  
end program example