#include <stdio.h>
#include <string.h>
int main()
{ int Num = 0;
while(scanf("%d",&Num) != EOF){
char binary[100] = {'\0'},list[100] = {'\0'},int_char;
int remin, len1, len2, count = 0;
do{
remin = Num % 2;
Num = Num / 2;
int_char = remin + '0'; //int轉char +'0'
binary[count] = int_char; //因為是char 所以要丟char型態資料
count++;
}while(Num >= 2);
if(Num != 0){
int_char = Num + '0'; //int轉char +'0'
binary[count] = int_char;
}
len1 = strlen(binary);
len2 = strlen(binary);
for(int i = 0; i < len1; i++){
list[i] = binary[len2-1];
len2--;
}
printf("%s\n",list);
}
return 0;
}