#include using namespace std; typedef long long ll; ll mod = 1000000007,inv[200010],fact[200010],fi[200010]; void inverse(){ int i; inv[1] = 1; for(i=2;i<200010;i++){ inv[i] = mod - (mod/i)*inv[mod%i]%mod; } fact[0] = fi[0] = 1; for(i=1;i<200010;i++){ fact[i] = fact[i-1]*i%mod; fi[i] = (fi[i-1]*inv[i])%mod; } } ll comb(int n,int k){ if(n<0 || k<0 || n> n; inverse(); for(i=0;i> a; (ans += comb(n-1,i)*a%mod) %= mod; } cout << ans << endl; }