Bit value#452

Bit value

1 second
64 megabytes
Very easy (≈850)

Two integers а and k are given. Print the value of k-th bit of number а, that equals to 0 or 1.

Input

Two integers а and k (0 ≤ а ≤ 10^9) are given in one line.

Output

Print the value of k-th bit of number а.

Examples

Example 1

Loading
Loading