package main import . "fmt" import . "os" import bf "bufio" var rs [2e5+1]int64 var es [2e5+1]int64 var ans [2e5+1]int64 const m=998244353 func init() { rs[1]=1 rs[2]=1 es[1]=1 es[2]=3 for i:=3;i<=2e5;i++ { rs[i]=(rs[i-1]+rs[i-2])%m es[i]=(es[i-1]+es[i-2])%m } for i:=range ans[:] { rs[i]*=rs[i] rs[i]%=m es[i]*=es[i] es[i]%=m ans[i]=(5*rs[i]%m-es[i]+m)%m } } func main() { rd:=bf.NewReader(Stdin) var q int Fscan(rd,&q) for ;q>0;q-- { var n int Fscan(rd,&n) Println(ans[n]) } }