eolymp
Competitions

Виток 1, Шаг 8 - Битовые операции

Reset bits

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 (0n231 - 1) and k (0k30).

Output

Print the result of resetting k last bits.

Time limit 1 second
Memory limit 32 MiB
Input example #1
5 1
Output example #1
4