The number that remains#2808

The number that remains

1 segundo
64 megabytes
Media (≈1350)

Given a sequence of consecutive natural numbers from to (n < m), perform the following operations repeatedly until only one number remains:

1. Remove all numbers in odd positions from the sequence. 2. From the remaining sequence, remove all numbers in even positions.

Your task is to determine the last remaining number.

Entrada

The input consists of two lines: the first line contains the integer , and the second line contains the integer , where n < m < 1000000000.

Salida

Output the last remaining number.

Ejemplos

Ejemplo 1

Loading
Loading