eolymp
Competitions

Виток 1, Шаг 8 - Битовые операции

Set a bit

Two integers a and k are given. Print the number that is obtained from а by setting the value of k-th bit to 1.

Input

One line contains two integers a and k (0a109). The least significant bit of a is a bit number zero.

Output

Print the number a with a set k-th bit.

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 B