#include <stdio.h>
int main()
{
int t=1;
while(t){
int bin[32];
int dec;
int i=31;
int j;
scanf(“%d”,&dec);
if (dec==0)
t=0;
else
{
while(dec!=1)
{
bin[i]=dec%2;
dec=dec/2;
i–;
}
bin[i]=dec;
for (j=i;j<=31;j++)
printf(“%d”,bin[j]);
printf(“\n”);
}
}
return 0;
}