func_code_string: #include <bits/stdc++.h>   using namespace std;   const int m = 10000 * 100000 + 7;   int main() {     string s;     cin >> s;     int n = s.length();     long long p = 0, q = 1;     for (int i = n - 1; i > 0; --i) {       if (s[i] ==  1 ) p = (p + q) % m;       q = q * 2 % m;     }     if (s[0] ==  1 ) p = (p + q) % m;     cout << p * q % m;     return 0;   }   