#include <iostream>
#include <stdio.h>
#include <stdlib.h>
using namespace std;
int main(int argc, char** argv) {
int a,b,c;
int A[50000]={0};
cin >> a;
while(a>=2){
b=a%2;
a=a/2;
A[c]=b;
c++;
}
A[c]=a;
for(int i=c;i>=0;i--){
cout << A[i];
}
system("pause");
return 0;
}