#include #include #include #include using namespace std; int main() { int n; cin>>n; char c[6]; itoa(n,c,2); int k=0; for(int j=0;j