#include<iostream>
#include<cstdio>
using namespace std;
int s[1000000],top;
int main() {
int n;
cin>>n;
while(n){
s[++top]=n%2;
n=n/2;
}
while(top){
cout<<s[top];
top--;
}
return 0;
}
#include<cstdio>
using namespace std;
int s[1000000],top;
int main() {
int n;
cin>>n;
while(n){
s[++top]=n%2;
n=n/2;
}
while(top){
cout<<s[top];
top--;
}
return 0;
}