eolymp
bolt
Try our new interface for solving problems
Problems

Invert a bit

Invert a bit

Two integers а and k are given. Print number that is obtained from а by inverting the k-th bit.

Input

One line contains two integers a and k (0a109).

Output

Print the number a with k-th bit inverted.

Time limit 1 second
Memory limit 128 MiB
Input example #1
5 1
Output example #1
7
Source 2010 LKSH Berendevy Polyany, August, Parallel C, Day 1, Problem C