import strutils,sequtils var m=998244353 var n=stdin.readLine.parseint var g=newSeqWith(n,newSeq[int](0)) for i in 0..