#include
                    int main()
                    {
                      int x,a,i;
                      printf("x=");
                      scanf("%d",&x);
                      if(x<0)
                      {
                        printf("Take care the number will read from fwon to up\n");
                        printf("take care the combleat bits its one's\n");
                        x*=-1;
                        x-=1;
                        a=x;
                        for(;a>=1;)
                        {
                          i=a%2;
                          a/=2;
                          if(i==0)
                            printf("1\n");
                          else 
                            printf("0\n");
                        }
                      }
                      else{
                        a=x;
                        for(;a>=1;)
                        {
                          i=a%2;
                          a/=2;
                          printf("%d\n",i);
                        }
                      }	
                        return 0;
                    }