#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';
}
}