Problem Description

Read two integers n and k. Toggle (flip) the k-th bit (0-based) of n and output the new number.

Input Format

One line: n k.

Output Format

One integer newN.

Sample Test Case

Input:
10 1
Output:
8

Constraints

0

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next