#include #include using namespace std; typedef long long int ll; ll A,B; ll gcd(ll a,ll b){ if(a> A >> B; ll m=gcd(A,B); A/=m;B/=m; m*=gcd(A+B,m); cout << m << endl; return 0; }