#include #include #include #include #include #include #include #include #include #include using namespace std; #define mod (1000000000+7) #define N (10007) #define INF 1e16 typedef long long ll; typedef pair P; ll gcd(ll a,ll b){ if(a>a>>b; ll g = gcd(a,b); //cout<b)swap(a,b); for(ll i=0;i