#include<iostream>
using namespace std;
int main(){
unsigned long long int num;
while(cin>>num){
int arr[32];
int count=0;
while(num!=0){
arr[count]=num%2;
num/=2;
count++;
}
for(int i=count-1;i>=0;i--){
cout<<arr[i];
}
cout<<endl;
}
return 0;
}