you give n pairwise noncollinear twodimensional vector you shape twodimensional plane vector follow fashion Start origin 0 0 choose vector add segment vector current point for example current point x y choose vector u v draw segment current point point x u y v set current point x u y v Repeat step 2 reach origin againyou reuse vector time wantcount number different nondegenerate area great 0 convex shape apply step shape contain m time m square vector building shape counterclockwise fashion since number large calculate modulo 998244353two shape consider exist parallel translation shape anotherA shape contain m time m square exist parallel translation shape point u v inside border shape satisfie 0 leq u v leq m