Problem Description

Input n and k (0-based). Print 1 if kth bit is set, else 0.

Input Format

One line: n k.

Output Format

One integer 0/1.

Sample Test Case

Input:
10 1
Output:
1

Constraints

0

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next