#include<bits/stdc++.h>
using namespace std;
int main(){
    int n;
    int x;
    cin>>n;
    string s;
    while(n!=0){
        x=n%2;
        char c=x+'0';
        n=n/2;
        s=c+s;
    }
    if(s==""){
        cout<<0;
    }
    else{
        cout<<s;
    }
}
/**************************************************************
	Problem: 1108
	User: luyanchen
	Language: C++
	Result: Accepted
	Time:15 ms
	Memory:2072 kb
****************************************************************/