#include #include const int mod = 1000000007; long long rui2[200010], rui11[200010], n; char s[200010]; long long res; int main() { rui2[0] = rui11[0] = 1; for(int i = 0; i < 200000; i++) rui2[i + 1] = rui2[i] * 2 % mod, rui11[i + 1] = rui11[i] * 11 % mod; scanf("%s", s); n = strlen(s); for(int i = 0; i < n; i++) { res += rui2[i] * rui11[n - 1 - i] * (s[i] - '0') % mod; res %= mod; } printf("%lld\n", res); }