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