#include <iostream>
#include <utility>
#include <vector>
using namespace std;
void getBinary(int x){
    vector<int> v;
    while(x != 0){
        v.push_back(x % 2);
        x /= 2;    
    }
    for(int i = v.size() - 1; i >= 0; i --)
        cout << v[i];
    cout << endl;
}
int main() {
    int x;
    while (cin >> x) {
        getBinary(x);
    }
    return 0;
}