#include <stdio.h>

int main(void) {
    int A,i,j,count,date[100];
    count=0;
	scanf("%d",&A);
    while(A/2!=0)
    {
    count=count+1;
    i=A%2;
    A=A/2;
    date[count]=i;
    }
    printf("%d",A);
    for(j=count;j>0;j--)
    {
    printf("%d",date[j]);
    }
	return 0;
}
