import sys input = sys.stdin.readline N,M=map(int,input().split()) mod=998244353 LIST=[] ALL=(1<