#include <iostream>
using namespace std;
int main()
{
int n;
while (cin >> n){
int d[1000],a=0;
while (n!=0){
d[a]=n%2;
n=n/2;
a++;
}
for (a=a-1; a>=0; a--){
cout << d[a];
}
cout << "\n";
}
return 0;
}