#include<bits/stdc++.h>
using namespace std;
int a[1000];
int main(){
int n,k=0;
cin>>n;
if (n==0) cout<<0;
else{
while(n!=0){
a[k]=n%2;
n=n/2;
k++;
}
for(int i=k-1;i>=0;i--)cout<<a[i];
}
#include<iostream>
#include<cstdio>
using namespace std;
int a[10005];
int b[10005];
int main(){
int n,f=1,s=0;
cin>>n;
while(n!=0){
s+=n%2*f;
f*=10;
n/=2;
}
cout<<s;
return 0;
}