#include using namespace std; const int M=2e5+5; const int P=1e9+7; int n; int A[M],Cnt[M]; long long Fact[M],Inv[M],Finv[M]; void Init() { Fact[0]=Fact[1]=Inv[0]=Inv[1]=Finv[0]=Finv[1]=1; for(int i=2;i