// Mohib Manva #include using namespace std; #define mod 666013 #define LOCAL 0 #define pb push_back #define ll long long ll po(ll a,ll b){ if(a==0){ return 0; } ll x = 1,y=a; while(b>0){ if(b%2){ x = x*y; x %= mod; } y=y*y; y%=mod; b/=2; } return x; } static ll f[200005],inv[200005]; ll nCr(int n,int r){ if(r<-1 || n