You are given an integer number and another integer . Your task is to find and output the last bits of the given number when it is represented in binary form.
Input
The first line contains a single integer ().
The second line contains a single integer ().
Output
Output a single integer representing the last bits of the number in its binary representation.