#include<stdio.h> using namespace std; int main(){ int n; scanf("%b",&n); int b; b=1; int c; for(int n); c=b+1;