#include <iostream> #include <stack> using namespace std; int main() { int n; while (cin >> n) { stack<int> sta; while(n) { sta.push(n%2); n/=2; } while(!sta.empty()) { cout<<sta.top(); sta.pop(); } cout<<endl; } }