#include<stdio.h>
int main(void){
int a[32], n = 0, i;
while(n != EOF){
scanf("%d", &n);
for(i=0; n>0; i++){
a[i] = n % 2;
n = n / 2;
}
for(i=i-1; i>=0; i--){
printf("%d", a[i]);
}
printf("\n");
if(getchar() == EOF)
break;
}
return 0;
}