The number that remains#2808

The number that remains

1 second
64 megabytes
Medium

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.

Input

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

Output

Output the last remaining number.

Examples

Example 1

Loading
Loading