#include<iostream>
#include<string>
#include<vector>

using namespace std;

void Convert(int n)
{
    vector<int> answer;
    while(n!=0)
    {
        answer.push_back(n%2);
        n/=2;
    }
    for(int i=answer.size()-1;i>=0;--i)
    {
        printf("%d",answer[i]);
    }
    printf("\n");
}

int main() 
{
    int n;
    while(scanf("%d",&n)!=EOF)
    {
        Convert(n);
    }

    return 0;
}