eolymp
Competitions

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

Bit value

Two integers а and k are given. Print the value of k-th bit of number а, that equals to 0 or 1.

Input

Two integers а and k (0а109) are given in one line.

Output

Print the value of k-th bit of number а.

Time limit 1 second
Memory limit 64 MiB
Input example #1
179 0
Output example #1
1
Source 2010 LKSH Berendevy Polyany, August, Parallel C, Day 1, Problem D