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