#include <stdio.h>
int main(int argc, const char * argv[]) {
int INPUTNUMBER = 0, i = 0;
int ans[100] = {0};
while(scanf("%d",&INPUTNUMBER) != EOF)
{
i = 0;
while(INPUTNUMBER / 2 )
{
ans[i] = INPUTNUMBER % 2;
INPUTNUMBER = INPUTNUMBER / 2;
i ++;
}
ans[i] = INPUTNUMBER;
while(i >= 0)
{
printf("%d",ans[i]);
ans[i] = 0;
-- i;
}
printf("\n");
}
return 0;
}