Reset bits#1647

Reset bits

1 second
32 megabytes
Easy

Given two integers and . Reset (set to zero) the last bits in the number , and print the result. It is recommended to solve this problem without using loops.

prb1647.gif

Input

Two numbers (0 \leq n \leq 2^{31} - 1) and (0 \leq k \leq 30).

Output

Print the result of resetting the last bits in .

Examples

Example 1

Loading
Loading