#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 + 48 ;
        n = n / 2;
        //cout << x <<" ";
        s = s + c;
    }
    //cout << s;
    for(int i = s.size();i>=0;i--)
    {
        cout <<s[i];
    }
    return 0;
}
/**************************************************************
	Problem: 1108
	User: mariooo
	Language: C++
	Result: Wrong Answer
****************************************************************/