#include <bits/stdc++.h>
using namespace std;

void toBinary(unsigned int n){
    vector<int>v;
    while(n!=0){
        v.push_back(n%2);
        n/=2;
    }
    for(auto a = v.rbegin();a!=v.rend();a++)
        cout<<*a;
    cout<<endl;
}

int main() {
    unsigned int n;
    while(cin>>n){
        toBinary(n);
    }
}
// 64 位输出请用 printf("%lld")