Reset bits#453

Reset bits

1 second
32 megabytes
Very easy (≈850)

Given two integers n and k. Reset (set to zero) the last k bits in the number n, and print the result. It is recommended to find solution without loops.

prb1647.gif

Input

Two numbers n (0 ≤ n ≤ 2^31 - 1) and k (0 ≤ k ≤ 30).

Output

Print the result of resetting k last bits.

Examples

Example 1

Loading
Loading