import java.io.*; import java.util.*; class Main { public static void main(String args[])throws Exception { BufferedReader bu=new BufferedReader(new InputStreamReader(System.in)); StringBuilder sb=new StringBuilder(); char s[]=bu.readLine().toCharArray(); int n=s.length,i; long p2[]=new long[n+1],p11[]=new long[n+1],M=998244353; p2[0]=1; p11[0]=1; for(i=1;i<=n;i++) { p2[i]=p2[i-1]*2%M; p11[i]=p11[i-1]*11%M; } long ans=0; for(i=0;i