#include<bits/stdc++.h>#definefifirst#definesesecond#definepbpush_back#definePIIpair<int,int>#defineintlonglong#defineIOSstd::ios::sync_with_stdio(false),cin.tie(0),cout.tie(0);usingnamespace std;constint N =1e6+10;int n,m;int va[N],cnt =0;signedmain(){
IOS;int x;
cin>>x;while(1){int now = x%2;
va[++cnt]= now;
x /=2;if(x==0)break;}for(int i=cnt;i>=1;i--) cout<<va[i];}
二转十
#include<bits/stdc++.h>#definefifirst#definesesecond#definepbpush_back#definePIIpair<int,int>#defineintlonglong#defineIOSstd::ios::sync_with_stdio(false),cin.tie(0),cout.tie(0);usingnamespace std;constint N =1e6+10;int n,m;signedmain(){
IOS;int x;
cin>>x;int sum =0,di =1;while(1){
sum += x%10*di;
di *=2;
x /=10;if(x==0)break;}
cout<<sum;}