#include #include using namespace std; int solve(int m,int n){ if(m> m >> n; int x = __gcd(m,n); m/=x; n/=x; cout << solve(m,n) << endl; return 0; }