program poor
    integer(4):: a,b,c
    read*, a,b,c

    if (((a/=b) .and. (a/=c) .and. (b/=c)) .or. ((a==b) .and.(a==c))) then
        print*, "No"
    else
        print*, "Yes"
    end if
end program poor