#include using namespace std; #include using namespace atcoder; using ll=long long; using Graph=vector>; #define INF 1000000000 #define MOD 998244353 #define MAX 1000 int main(){ int N; cin>>N; vector A(N); for(int i=0;i>A[i]; } sort(A.begin(),A.end()); ll sum=1; int i=0; while(i0){ sum*=(ll)cnt; cnt--; } } ll x=1; for(int i=1;i<=N;i++){ x*=(ll)i; } cout<