#P274. 【例45.3】 寻找最低数

【例45.3】 寻找最低数

Description

Given a positive integer AA (1A2.1×1091≤A≤2.1×10^9), output the lowest bit of AA. For example, if A=26A=26, its binary representation is 1101011010, so the lowest bit is 1010, and the output is 22 in decimal. Another example, if A=88A=88, its binary representation is 10110001011000, so the lowest bit is 10001000, and the output is 88.

Input Format

Multiple test cases. Each line contains a positive integer AA (1A2.1×1091≤A≤2.1×10^9). Input ends when 00 is entered.

Output Format

For each input, output the corresponding lowest bit.

Sample

26
88
0
2
8