#44335: .......


yp11251094@yphs.tp.edu.tw (907-45羅元甫)


#include <bits/stdc++.h>
using namespace std;
int main() {
    int x;
    while(cin >> x){
        bool start = false;
        for(int i = 31;i >= 0;i--) {
            if((x >> i) & 1) {
                if(!start) start = true;
            }
            if(start) cout << ((x >> i) & 1);
        }
        cout << '\n';
    }
}