#include <iostream>
using namespace std;
int main () {
int n,p[10000],i;
while(cin >> n){
for (i = 0 ; n > 0 ; i++){
p[i] = n % 2 ;
n = n/2;
}
i--;
while(i >= 0){
cout << p[i];
i = i - 1;
cout << endl;