#include<bits/stdc++.h>
using namespace std;
int main()
{
int n;
cin>>n;
int x;
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: wuyichen
Language: C++
Result: Accepted
Time:15 ms
Memory:2072 kb
****************************************************************/