AND and AND

Robocontest Round 12 · R012A time 1 s · memory 16 MB original (uzbek) ↗ solve ↗

Two natural numbers \(A\) and \(B\) are given. Find the smallest natural number \(X\) such that A AND X = B AND X (bitwise AND).

Input

Two lines contain the numbers \(A\) and \(B\) (\(1 \le A, B \le 10^{18}\)).

Output

The smallest number \(X\) satisfying the problem condition.

Example

input
5
22
output
4