#include const int Mod = 998244353; int main() { char S[200001]; scanf("%s", S); int i, l; long long ans = 0, tmp = 1, pow[200001] = {1}; for (l = 0; S[l] != 0; l++) pow[l+1] = pow[l] * 2 % Mod; for (i = l - 1; i >= 0; i--) { ans += tmp * (S[i] - '0') * pow[i] % Mod; tmp = tmp * 11 % Mod; } printf("%lld\n", ans % Mod); fflush(stdout); return 0; }