#include<stdio.h>
#include<string.h>
#include<stdlib.h>
int main()
{
     int t,n;
     while(scanf("%d",&n),n) 
     {
         t=n&(-n);
         printf("%d\n",t);                        
     }   
     //system("pause");
     return 0;
}

posted on 2011-08-16 19:54  枫叶飘泪  阅读(640)  评论(0编辑  收藏  举报