566. Bitwise AND Range Game

0

Medium

Given two integers left and right that represent the range [left, right], print the bitwise AND of all numbers in this range, inclusive.

Input Format

First line contains two integers *left* and *right*.

Output Format

Print Bitwise AND of the given range.

Example

Input

5 7

Output

4

Constraints

0 <= left <= right <= 2

^{31}- 1Loading...

View Submissions

Console