#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include //#include #define rep(i,n) for(int i=0;i<(n);i++) #define all(x) x.begin(), x.end() #define rall(x) x.rbegin(), x.rend() #define sz(x) ((int)(x).size()) #define pb push_back using ll = long long; using namespace std; templatebool chmax(T &a, const T &b) { if (abool chmin(T &a, const T &b) { if (b fac(202000), finv(202000), inv(202000); void initcom(){ fac[0] = fac[1] = finv[0] = finv[1] = inv[1] = 1; for(int i=2; i<202000; i++){ fac[i] = (fac[i-1]*i) % mod; inv[i] = mod - inv[mod%i] * (mod/i) % mod; finv[i] = finv[i-1] * inv[i] % mod; } } ll nCr(int n, int k){ if(n> N; vector A(N); rep(i,N) cin >> A[i]; ll ans = 0; rep(i,N) ans += A[i]*nCr(N-1,i)%mod; cout << ans%mod << endl; return 0; }