#define MD 998244353 { int @n; Mint z=0; Mint c=1; Mint y=Mint(2)**n; Mint inv16=Mint(1)/16; REP(i,0,n/4*2+2,2){ z+=y*c; y*=inv16; c*=n-i; c*=n-i-1; c/=i+1; c/=i+2; } Mint x=Mint(2)**(4-(n&3)); REP(i,n/4*2+2,n+1,2){ z+=x*c; x*=16; c*=n-i; c*=n-i-1; c/=i+1; c/=i+2; } wt(z*2); }