#include #include #include using namespace std; using mint=atcoder::modint998244353; string N; mint dp[2][2][1<<10]; int main() { ios::sync_with_stdio(false); cin.tie(nullptr); cin>>N; int now=0; for(int i=0;i0||n>d][1<