#P274. 【例45.3】 寻找最低数
【例45.3】 寻找最低数
Description
Given a positive integer (), output the lowest bit of . For example, if , its binary representation is , so the lowest bit is , and the output is in decimal. Another example, if , its binary representation is , so the lowest bit is , and the output is .
Input Format
Multiple test cases. Each line contains a positive integer (). Input ends when is entered.
Output Format
For each input, output the corresponding lowest bit.
Sample
26
88
02
8