#include <stdio.h>
void out_binary(int n)
{
if(!n)return;
out_binary(n/2);
putchar(n%2?'1':'0');
}
int main()
{
int n;
while(scanf("%d",&n)!=EOF){
out_binary(n);
putchar('\n');
}
}
void out_binary(int n)
{
if(!n)return;
out_binary(n/2);
putchar(n%2?'1':'0');
}
int main()
{
int n;
while(scanf("%d",&n)!=EOF){
out_binary(n);
putchar('\n');
}
}