PolandBall stand row many other ball more precisely exactly n Balls Balls proud home land want prove strongThe Balls decide start select exactly m group Balls consist single Ball neighboring Balls each Ball join groupThe Balls want impress Enemies they kindly ask calculate number division m 1mk output value modulo 998244353 enemy impress