#include<stdio.h>
#include<conio.h>

void main()
{
int x,i=0,v,c[19];
clrscr();
scanf("%d",&x);
while(x>0)
{
c[i]=x%2; x/=2;
i++;
sum=pow(2,i)*sum;  stdio.h
//printf("%d",v);
}
for(v=i-1;v>=0;v--)
printf("%d",c[v]);
getch();
}
