#include<bits/stdc++.h> using namespace std; int main() { int n; cin>>n; int x; char c; string s; while(n!=0) { x=n%2; c=x+48; n=n/2; s=c+s; } if(s=="") { cout<<0; } else { cout<<s; } return 0; } /************************************************************** Problem: 1108 User: chenkexin Language: C++ Result: Accepted Time:15 ms Memory:2072 kb ****************************************************************/