func_code_string: #include <bits/stdc++.h>   using namespace std;   const int N = 1e6 + 3;   const long long int M = 1000000007;   void solve() {     string s;     cin >> s;     int n = s.length();     for (int i = 0; i < n - 1; ++i) {       s +=  0 ;     }     long long int ans = 0;     for (int i = 0; i < 2 * (n - 1) + 1; ++i) {       ans += ans + s[i] -  0 ;       ans %= M;     }     cout << ans;   }   int main() {     ios_base::sync_with_stdio(false);     cin.tie(0);     solve(), cout <<   n ;     return 0;   }   