Category

Similar Problems

0724. Change the one

Time limit : 1000 ms
Memory limit : 64 mb

   Given number n. Using only bit operations, replace the rightmost bit one in the binary notation to zero.

   Input

      One number n (1 ≤ n ≤ 109).

   Output

      Print one changed number.

Samples

Input

Output

1

1

0

2

18

16

 

Tayyorladi: Azat Yusupov
Text from: e-olimp.com