#include <iostream>
#include <vector>
using namespace std;

int main() {
	int N=0, t=0, d=1;
	cin>>N;
	if (N>0){
	vector <int> v = {};
	    while(N)
	    {
	        t +=(N%2)*d;
	        N=N/2;
	        d=d*10;
	        
	    }
	    v.push_back(t);
	    for (auto x:v){
	    	cout << x;
	    	}	
	}else{
		//cout << "Число должно быть больше 0";
	}
	return 0;
}