include [HTML_REMOVED]
using namespace std;
string reverse(unsigned int n){
string s=”“;
if(n==0) return “0”;
while(n >0 ){
s += ‘0’ + n%2; //将余数添加到字符串中
n/=2; //处理下一个余数
}
return s;
}
int main(){
unsigned int n;
while(cin >> n){ //连续读入数据
string str = reverse(n); //转换为二进制
for(int i = str.size()-1 ; i >= 0 ; i–){ //字符串倒序输出
cout << str[i];
}
cout <<endl;
}
return 0;
}