#include <cstdio>
#include <stack>

 using namespace std;
int main(){
    stack <int>stk1;
    int n;
    while (scanf("%d",&n) !=EOF){
        while(n != 0){
            stk1.push(n%2);
            n=n/2;
        }
        while(!stk1.empty()){
            printf("%d",stk1.top());
            stk1.pop();
        }
        printf("\n");
    }
    return 0;
}