Олимпиадный тренинг

Задача 44573. Invert the bit


Задача

Темы: Битовые операции

Write a program that inverts the kth bit of a  N. Display the resulting number.

Arithmetic operations cannot be used in the program, only bit operations must be used!
 

Input

Given an integer N and a natural number k.


Output

Display the number obtained after inverting the given bit.

 

Examples
# Input Output
1 5 2 1
 

 
Запрещенные операторы:+;-;*;/;%