Problem Description

Read two non-negative integers n and k. Output 1 if k-th bit (0-based) of n is set, else 0.

Input Format

One line: n k.

Output Format

0 or 1.

Sample Test Case

Input:
10 3
Output:
1

Constraints

0

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next