#include #include const int mod = 998244353; int n, res; long long rui2[200010], rui11[200010]; char s[200010]; 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 = (res + rui2[i] * rui11[n - 1 - i] * (s[i] - '0')) % mod; printf("%lld\n", res); }