Two natural numbers \(A\) and \(B\) are given. Find the smallest natural number \(X\) such that A AND X = B AND X (bitwise AND).
Two lines contain the numbers \(A\) and \(B\) (\(1 \le A, B \le 10^{18}\)).
The smallest number \(X\) satisfying the problem condition.
5 22
4