#include<iostream>
#include<cstdio>
#include<vector>
using namespace std;
int main(){
    unsigned int n;
    while(scanf("%d",&n)!=EOF){
        vector<int> binary;
        while(n){
            binary.push_back(n%2);
            n/=2;
        }
        for(int i=binary.size()-1;i>=0;--i){
            printf("%d",binary[i]);
        }
        printf("\n");
    }
    return 0;
}