#include<iostream>
#include<stack>
#include<cstdio>
using namespace std ;
int main()
{
int n = 0;
while(scanf("%d" ,&n) == 1)
{
int mod = 0;
stack < int > sta ;
while(n)
{
mod = n % 2 ;
sta.push(mod);
n /= 2 ;
}
while(!sta.empty())
{
printf("%d" , sta.top());
sta.pop();
}
puts("");
}
}