#include<iostream>
#include<algorithm>
using namespace std;
int main(){
long num=0;
while(cin>>num){
int n=0;
int numbers[100];
for(n=0;num/2!=0;n++){
numbers[n]=num%2;
num/=2;
}
numbers[n]=num%2;
num/=2;n++;
reverse(numbers,numbers+n);
for(int t=0;t!=n;t++){
cout<<numbers[t];
}
cout<<endl;
}
return 0;
}