Masala #0097

Xotira 16 MB Vaqt 1000 ms
14

AND and AND

Ikkita natural A va B sonlar beriladi. Eng kichik natural X sonni topingki, A and X = B and X shart bajarilsin.


Kiruvchi ma'lumotlar:

Ikkita qatorda A va B sonlar (1 ≤ A, B ≤ 1018).


Chiquvchi ma'lumotlar:

Masala shartini qanoatlantiradigan eng kichik X son.


Misollar
# input.txt output.txt
1
5
22
4