#include <bits/stdc++.h> #define MAX 50 using namespace std; void d2b(unsigned int n){ int data[MAX],len = 0; while(n){ data[len++] = n % 2; n /= 2; } for(len--; len >= 0;len--){ cout<<data[len]; } cout<<endl; } int main(){ unsigned int n; while(cin>>n){ d2b(n); } }