#define MD 998244353 string@s;Mint z,w=1;for(int c:s)c%5?w*=3:z+=w;wt(z);