#include <iostream> #include <cstdio> #include <stack> using namespace std; stack<int> mystack; int main(){ int n; int m; while(scanf("%d",&n)!=EOF){ while(n!=0){ mystack.push(n%2); n=n/2; } m=mystack.size(); for(int i=0;i<m;++i){ printf("%d",mystack.top()); mystack.pop(); } printf("\n"); } }