ll pow(ll a, ll b, ll mod) { ll ret = 1; for(int st=0; (1LL<