#include <cstdlib>
#include <iostream>

using namespace std;

int main(int argc, char *argv[])
{
    int x;
    cin >> x;
    
    int m;
    m= x;
    
    int b;
    b= 1;
    while (x!=0)
       {
        x= x/2;
        b= b<<1;
       }
       
    x= m;
    
    while (b!=1
    )
       {
        b= b>>1;
        if ( (x&b) != 0)
           cout << 1;
        else
           cout << 0;
       }
    cout << endl;
    
    system("PAUSE");
    return EXIT_SUCCESS;
}
