#C4781. XOR Relationship Checker
XOR Relationship Checker
XOR Relationship Checker
You are given three integers a, b, and c. Your task is to determine if there exists a non-negative integer x such that the following inequalities hold:
$$a \oplus x c \oplus x,$$
where \(\oplus\) denotes the bitwise XOR operation. If such an x exists, print Yes
; otherwise, print No
.
Note: The input is provided via standard input and the output should be printed to standard output.
inputFormat
The input consists of a single line containing three space-separated integers a, b, and c.
\(1 \leq a, b, c \leq 10^9\)
outputFormat
Output a single line containing either Yes
if there exists a non-negative integer x that satisfies the conditions, or No
otherwise.
5 9 2
Yes