LearnPy Hub
← Arena
IntermediateRating 1100

One Bit Apart?

Print YES if the two numbers differ in exactly one bit of their binary form, otherwise NO.

Input

Two integers a and b (0 ≤ a, b ≤ 10⁹).

Output

YES or NO.

Sample 1

Input
13 9
Output
YES

Sample 2

Input
15 8
Output
NO
solution.py
Output appears here
One Bit Apart? · Python Arena problem · LearnPy Hub