e-olymp
favorite We need a little bit of your help to keep things running, click on this banner to learn more
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