#include <iostream>
using namespace std;

//十进制转2进制数
int main(void) {
    int y;
    cin >> y ;
    int z[40];
    int num = 0;
    while(y!=0) {
        z[num++] = y%2;
        y/=2;
    }
    for(int i = 39;i>=0;i--){
        cout << z[i];
    }
    cout << endl;
}