#define MD 998244353 ll@N;Mint M=0;rep(N)M+=rd_ll();wt(min(M,N-M)/N);