You are given an integer N and an integer sequence X of length M. Count, modulo 998244353, the number of permutations P=(P_1,P_2,…,P_N) of (1,2,…,N) that satisfy the following condition:
The first line contains integers N (1≤N≤250000) and M (1≤M≤N).
The second line contains integers X_1,X_2,…,X_M (1≤X_i≤N, X_i=X_j for all i=j).
Print the answer.